GraphicsExtensions Class

Contains extension methods for the Graphics type.

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
C#
public static class GraphicsExtensions
Inheritance
Object    GraphicsExtensions

Remarks

  Note

When targeting .NET 7.0 or later versions this class is supported on Windows only.

Methods

DrawRoundedRectangle(Graphics, Pen, Rectangle, Int32) Draws a rounded rectangle specified by a bounding Rectangle and a common corner radius value for each corners.
DrawRoundedRectangle(Graphics, Pen, Rectangle, Int32, Int32, Int32, Int32) Draws a rounded rectangle specified by a bounding Rectangle and four corner radius values.
FillRoundedRectangle(Graphics, Brush, Rectangle, Int32) Fills a rounded rectangle specified by a bounding Rectangle and a common corner radius value for each corners.
FillRoundedRectangle(Graphics, Brush, Rectangle, Int32, Int32, Int32, Int32) Fills a rounded rectangle specified by a bounding Rectangle and four custom corner radius values.
ToBitmap Copies the Graphics object specified in the graphics parameter to a Bitmap instance.

See Also