GraphicsExtensionsDrawRoundedRectangle Method

Draws a rounded rectangle specified by rectangle bounds.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
public static void DrawRoundedRectangle(
	this IGraphics g,
	ColorPen pen,
	RectangleF rect,
	float arcSize
)

Parameters

g  IGraphics
pen  ColorPen
A ColorPen that determines the color, width, and style of the rounded rectangle.
rect  RectangleF
A RectangleF structure that represents the rounded rectangle to draw.
arcSize  Single
Size of the arcs on the rounded rectangle corners.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also