Adds a rectangle defined by the RectangleF structure to the path.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public void DrawRectangle(
RectangleF rectangle
)
Type: System.Drawing.RectangleF
A rectangle to add.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");
}