2010-11-13 50 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

相關問題