如何使用 WPF 实现高性能 3D 图形?

发布于 2024-09-27 13:20:46 字数 191 浏览 0 评论 0原文

我必须开发 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱情眠于流年 2024-10-04 13:20:46

是的,Wpf 可用于基于图形的 UI。请参阅此链接

有关 WPF 的性能,请参阅此博客

Yes , Wpf can be used for havey graphics based UI. See this link

For performance of WPF see this blog

嘿哥们儿 2024-10-04 13:20:46

查看 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文