Click or drag to resize

ZebraCardGraphicsDrawRectangle Method

Draws a rectangle at the specified coordinates.

Namespace:  Zebra.Sdk.Card.Graphics
Assembly:  SdkApi_Card_Desktop (in SdkApi_Card_Desktop.dll) Version: 2.14.1989
Syntax
public void DrawRectangle(
	int x,
	int y,
	int width,
	int height,
	int lineThickness,
	Nullable<Color> lineColor,
	Nullable<Color> fillColor
)

Parameters

x
Type: SystemInt32
The x coordinate.
y
Type: SystemInt32
The y coordinate.
width
Type: SystemInt32
The width of the rectangle.
height
Type: SystemInt32
The height of the rectangle.
lineThickness
Type: SystemInt32
The line thickness of the rectangle.
lineColor
Type: SystemNullableColor
The line color of the rectangle.
fillColor
Type: SystemNullableColor
The fill color of the rectangle.

Implements

ZebraGraphicsDrawRectangle(Int32, Int32, Int32, Int32, Int32, NullableColor, NullableColor)
Exceptions
ExceptionCondition
ZebraIllegalArgumentExceptionIf there is an error with the provided arguments.
ZebraCardExceptionIf an error occurs while rendering the rectangle.
See Also