GraphicsDrawRectangle Method

Draws a rectangle specified by a coordinate pair, a width, and a height.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.2.0
C#
public void DrawRectangle(
	ColorPen pen,
	float x,
	float y,
	float width,
	float height
)

Parameters

pen  ColorPen
A ColorPen that determines the color, width, and style of the rectangle.
x  Single
The x-coordinate of the upper-left corner of the rectangle to draw.
y  Single
The y-coordinate of the upper-left corner of the rectangle to draw.
width  Single
The width of the rectangle to draw.
height  Single
The height of the rectangle to draw.

Implements

IGraphicsDrawRectangle(ColorPen, Single, Single, Single, Single)

See Also