在 WPF InkCanvas 中使用图像
我想将图像导入到 WPF inkcanvas 对象中,特别是导入到描边集合中,而不是导入到子集合中,也不作为背景图像。这样做的原因是我希望能够轻松地擦除和操作绘图,就像它最初是在 inkcanvas 中绘制的一样。
我看过有关将笔划导出到 XAML 以及将笔划转换为路径的文章。也许有一种方法可以将位图转换为路径并将其导入到笔画集合中?
I would like to import an image into a WPF inkcanvas object, specifically into the strokes collection, not into the children collection and not as a background image. The rational for this is I want to be able to easily erase and manipulate on the drawing as if it was originally drawn in inkcanvas.
I have seen articles on exporting the strokes to XAML and converting strokes to paths. Perhaps there is a way to convert a bitmap to a path and import it into the stroke collection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论