Adds an ellipse defined by a bounding RectangleF to the path.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public void DrawEllipse(
RectangleF rectangle
)
Type: System.Drawing.RectangleF
A RectangleF structure that defines the boundaries of the ellipse.using (var bitmap = new Bitmap(160, 120, PixelFormat.Format24bppRgb, RgbColor.White)) using (var graphics = bitmap.GetAdvancedGraphics()) using (var path = new Path()) { path.DrawEllipse(new System.Drawing.Rectangle(10, 10, 70, 70)); path.DrawRectangle(new System.Drawing.RectangleF(75, 75, 75, 35)); graphics.DrawPath(new Pen(RgbColor.Green), path); bitmap.Save(@"Images\Output\out.png"); }