2010-11-13 51 views

回答

7

你可以使用一个非常粗的笔画的椭圆,但透明的填充?诚然,如果你想环本身的边缘,以不同的颜色来填充部分不起作用......

另外,我开始寻找包含在GeometryGroup 2个EllipseGeometry元素有一个PathFillRuleEvenOddCombineGeometryGeometryCombineModeExclude。例如:

<Path Stroke="Black" StrokeThickness="1" Fill="#CCCCFF"> 
    <Path.Data> 
    <CombinedGeometry GeometryCombineMode="Exclude"> 
     <CombinedGeometry.Geometry1> 
     <EllipseGeometry RadiusX="100" RadiusY="100" Center="125,125" /> 
     </CombinedGeometry.Geometry1> 
     <CombinedGeometry.Geometry2> 
     <EllipseGeometry RadiusX="50" RadiusY="50" Center="125,125" /> 
     </CombinedGeometry.Geometry2> 
    </CombinedGeometry> 
    </Path.Data> 
</Path> 

产生以下:

alt text

难道我说得对,就是你是什么之后?

+0

这就是我需要的。谢谢。 – AndreyAkinshin 2010-11-14 06:25:35

相关问题