.net - Disappearing circles -


I have found that the number of shapes covered in the canvas like:

  Geometry Group GG = new geometry group (); Eelipase Gimetti e1 = New Elyspirometry (new point (10, 10), 20, 20); Elyszmetry E2 = New Ellipse Gatimetry (new point (10, 10), 20, 20); // ElyssesGemetry E3 = New Ellipse Gatimetry (new point (10, 10), 20, 20); Gg.Children.Add (E1); Gg.Children.Add (E2); //gg.children.Add(e3); Path p = new path (); P.Data = gg; P.Fill = Brush Red; MyCanvas.Children.Add (P);  

If you run these codes, "clears" all previous shapes, you will not see anything, but if you want to delete some lines, a circle will appear. Is anyone able to explain this strange behavior?

You have to set according to the geometry group accordingly. Must contain the value of NonZero . At present you draw each shape on top of each other, so that the area can also be white with the size of the number because EvenOdd is the default fill rule:

(image) to

  geometry group gg = new geometry group (); Gg.FillRule = FillRule.Nonzero; Eelipase Gimetti e1 = New Elyspirometry (new point (10, 10), 20, 20); Elyszmetry E2 = New Ellipse Gatimetry (new point (10, 10), 20, 20); Gg.Children.Add (E1); Gg.Children.Add (E2); Path p = new path (); P.Data = gg; P.Fill = Brush Red;  

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -