Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简单问题 - 如何使用绘图上下文制作椭圆但不填充颜色?
目前我有:
drawingContext.DrawEllipse(drawBrush, null, jointPoints[jointType], JointThickness, JointThickness);
这给了我一个椭圆,它在 Kinect 跟踪的每个关节位置都充满了颜色。
我想显示一个没有填充的外圆,我该怎么做?
例如上图,我将如何制作外圈?
只需传递null画笔并传递Pen所需颜色的颜色即可。
null
Pen
来自MSDN:
用来填充椭圆的画笔。这是可选的,可以为空。如果画笔为空,则不绘制填充。