Fills the interior of a rectangle specified by a RectangleF structure.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public void FillRectangle( Brush brush, RectangleF rectangle )
Type: Aurigma.GraphicsMill.AdvancedDrawing.Brush
A Brush that determines the characteristics of the fill.Type: System.Drawing.RectangleF
To draw an outlined rectangle, use DrawRectangle(Pen, RectangleF) method.
using (var bitmap = new Bitmap(80, 80, PixelFormat.Format24bppRgb, RgbColor.White)) using (var graphics = bitmap.GetAdvancedGraphics()) { graphics.FillRectangle(new SolidBrush(RgbColor.DeepPink), new System.Drawing.Rectangle(10, 10, 60, 60)); bitmap.Save(@"Images\Output\out.png"); }