如何以数学方式绘制 WPF 形状?
我想像色轮一样绘制 WPF 元素,您可以从 HSV 颜色空间知道。 我不知道该怎么做,我还没有找到基于标准画笔(SolidColorBrush、GradientBrush 等)的可能性,
如何在 wpf 形状上进行(数学)绘画?
I want to paint an WPF-Element like a colorwheel, you know from the HSV color space.
i dont know how to do this, i havnt found a possibility based on the standard brushes (SolidColorBrush, GradientBrush, etc)
How is a (mathematical) painting possible on wpf-shapes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你谈论画笔和笔时,你谈论的是 GDI+,在 GDI+ 中你可以完全控制任何事情,因为你基本上决定打开哪个像素,当然不是那么低,而是使用线条、多边形和路径。
有关 GDI+ 和 WPF 之间的比较,或者只是了解有关如何从第一个移动到第二个的一些信息,请检查此:C# GDI+ 和 WPF 之间的转换 有一些答案,其中包含很多详细信息
when you talk about Brushes and Pens you are talking about GDI+ and in GDI+ you have full control on anything since you are basically deciding which pixel to turn on, not so low of course but using lines, polygons and paths.
for a comparison between GDI+ and WPF or simply for some info regarding how to move from the first to the second, check this one: C# Transition between GDI+ and WPF there are some answers with lots of details