Wpf 当FillRule失败时,如何填充重叠区域?

Wpf 当FillRule失败时,如何填充重叠区域?,wpf,xaml,Wpf,Xaml,我想画一个手工制作的DB鼓形状。问题是顶部椭圆没有完全填充。 样本: 有解决这个问题的替代方案吗? 谢谢。最后。。。解决方案是使用圆弧段制作两个单独的路径图形: <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid> <Imag

我想画一个手工制作的DB鼓形状。问题是顶部椭圆没有完全填充。 样本:


有解决这个问题的替代方案吗?
谢谢。

最后。。。解决方案是使用圆弧段制作两个单独的路径图形:

<Page  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
    <Image Width="126" Height="42" Margin="3" HorizontalAlignment="Left" VerticalAlignment="Top">
        <Image.Source>
            <DrawingImage>
                <DrawingImage.Drawing>
                    <GeometryDrawing Brush="Silver">
                        <GeometryDrawing.Pen>
                            <Pen Brush="Black" Thickness="1" LineJoin="Bevel" EndLineCap="Round" StartLineCap="Round" />
                        </GeometryDrawing.Pen>
                        <GeometryDrawing.Geometry>
                            <GeometryGroup x:Key="Drum" FillRule="NonZero">
                                <PathGeometry>
                                    <PathFigure StartPoint="0,6" IsClosed="True">
                                        <ArcSegment Point="125,6" IsLargeArc="False" IsStroked="True" SweepDirection="Clockwise" Size="15,1.5" />
                                        <ArcSegment Point="0,6" IsLargeArc="False" IsStroked="True" SweepDirection="Clockwise" Size="15,1.5" />
                                    </PathFigure>
                                </PathGeometry>
                                <PathGeometry>
                                    <PathFigure StartPoint="0,6" IsClosed="True">
                                        <ArcSegment Point="125,6" IsLargeArc="False" IsStroked="True" Size="15,1.5" IsSmoothJoin="True" />
                                        <LineSegment Point="125,35" IsSmoothJoin="True" />
                                        <ArcSegment Point="0,35" IsLargeArc="False" IsStroked="True" SweepDirection="Clockwise" Size="15,1.5" IsSmoothJoin="True" />
                                        <LineSegment Point="0,6" IsSmoothJoin="True" />
                                    </PathFigure>
                                </PathGeometry>
                            </GeometryGroup>
                        </GeometryDrawing.Geometry>
                    </GeometryDrawing>
                </DrawingImage.Drawing>
            </DrawingImage>
        </Image.Source>
    </Image>  
</Grid>
</Page>

<Page  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
    <Image Width="126" Height="42" Margin="3" HorizontalAlignment="Left" VerticalAlignment="Top">
        <Image.Source>
            <DrawingImage>
                <DrawingImage.Drawing>
                    <GeometryDrawing Brush="Silver">
                        <GeometryDrawing.Pen>
                            <Pen Brush="Black" Thickness="1" LineJoin="Bevel" EndLineCap="Round" StartLineCap="Round" />
                        </GeometryDrawing.Pen>
                        <GeometryDrawing.Geometry>
                            <GeometryGroup x:Key="Drum" FillRule="NonZero">
                                <PathGeometry>
                                    <PathFigure StartPoint="0,6" IsClosed="True">
                                        <ArcSegment Point="125,6" IsLargeArc="False" IsStroked="True" SweepDirection="Clockwise" Size="15,1.5" />
                                        <ArcSegment Point="0,6" IsLargeArc="False" IsStroked="True" SweepDirection="Clockwise" Size="15,1.5" />
                                    </PathFigure>
                                </PathGeometry>
                                <PathGeometry>
                                    <PathFigure StartPoint="0,6" IsClosed="True">
                                        <ArcSegment Point="125,6" IsLargeArc="False" IsStroked="True" Size="15,1.5" IsSmoothJoin="True" />
                                        <LineSegment Point="125,35" IsSmoothJoin="True" />
                                        <ArcSegment Point="0,35" IsLargeArc="False" IsStroked="True" SweepDirection="Clockwise" Size="15,1.5" IsSmoothJoin="True" />
                                        <LineSegment Point="0,6" IsSmoothJoin="True" />
                                    </PathFigure>
                                </PathGeometry>
                            </GeometryGroup>
                        </GeometryDrawing.Geometry>
                    </GeometryDrawing>
                </DrawingImage.Drawing>
            </DrawingImage>
        </Image.Source>
    </Image>  
</Grid>
</Page>