コード例 #1
0
 protected void FillGeometry(WindowRenderTarget device, Color color, params Vector2[] points)
 {
     using (PathGeometry gmtry = CreatePathGeometry(points))
     {
         using (SolidColorBrush brush = new SolidColorBrush(device, color))
         {
             device.FillGeometry(gmtry, brush);
         }
     }
 }
コード例 #2
0
 protected void FillPolygon(WindowRenderTarget device, Color color, Vector2 start, Vector2 middle, Vector2 end)
 {
     using (PathGeometry gmtry = CreatePathGeometry(start, middle, end))
     {
         using (SolidColorBrush brush = new SolidColorBrush(device, color))
         {
             device.FillGeometry(gmtry, brush);
         }
     }
 }