It’s just interesting which one is easier, I will have a control that draws 280 * 4 my SegmentControl, which is a quarter circle, and I’m just wondering how the least memory is needed to draw the specified segment.
GeometryDrawing:
<Image>
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<GeometryDrawing Brush="LightBlue"
Geometry="M24.612317,0.14044853 C24.612317,0.14044853 33.499971,-0.60608719 41,7.0179795 48.37642,14.516393 47.877537,23.404541 47.877537,23.404541 L24.60978,23.401991 z" />
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
Or Way:
<Path Fill="LightBlue"
Stretch="Fill"
Stroke="#FF0DA17D"
Data="M24.612317,0.14044853 C24.612317,0.14044853 33.499971,-0.60608719 41,7.0179795 48.37642,14.516393 47.877537,23.404541 47.877537,23.404541 L24.60978,23.401991 z" />
Or, if you know an even better way, it will be very appreciated.
Thank!
Carlo source
share