Click or drag to resize

ZebraGraphicsIInitialize Method

Initializes the drawing surface.

Namespace:  Zebra.Sdk.Card.Graphics
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
void Initialize(
	int maxWidth,
	int maxHeight,
	OrientationType orientation,
	PrintType printType,
	Nullable<int> fillColor
)

Parameters

maxWidth
Type: SystemInt32
The maximum width of the image (limited based on printer model).
maxHeight
Type: SystemInt32
The maximum height of the image (limited based on printer model).
orientation
Type: Zebra.Sdk.Card.EnumerationsOrientationType
The orientation of the image. (default is OrientationType.Landscape)
printType
Type: Zebra.Sdk.Card.EnumerationsPrintType
The type of print to be performed. (default is PrintType.Color)
fillColor
Type: SystemNullableInt32
The RGB background fill color. (default is White or 0xffffff)
Exceptions
ExceptionCondition
ZebraIllegalArgumentExceptionIf there is an error with the provided arguments.
ZebraCardExceptionIf an error occurs initializing the graphics objects.
Remarks
If the specified maxWidth or maxHeight is 0, then the maximum values for the specified printer model will be used.
See Also