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); } } }
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); } } }