如何使用 WPF 实现高性能 3D 图形?
我必须开发 CAD 应用程序,并且计划将 WPF 与 C# 结合使用。早些时候我曾使用 GDI+ 和 C# 来编写类似的应用程序。
如何在WPF中进行类似GDI+的图形操作?
我想用铅笔设置像素颜色(类似于MS Paint),绘制一些基本形状,如圆形、线条、矩形等。
我打算使用画布。有人有例子吗?
谢谢
I have to develop a CAD application and I am planing to use WPF with C#. Earlier I had used GDI+ with C# to write similar application.
How can I perform the graphics operation in WPF similar to GDI+?
I want to set the pixel color with pencil (similar to MS Paint), draw some basic shapes such as circles, lines, rectangles etc etc.
I am planning to use canvas. Some one have any example?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,Wpf 可用于基于图形的 UI。请参阅此链接
有关 WPF 的性能,请参阅此博客
Yes , Wpf can be used for havey graphics based UI. See this link
For performance of WPF see this blog
查看 Kael Rowan 的 ZoomableCanvas。它提供虚拟化,可能比默认的 Canvas 更适合繁重的图形场景。
Check out Kael Rowan`s ZoomableCanvas. It provides Virtualization and may be more suitable for heavy graphics scenarios than the default Canvas.