Click or drag to resize

ZebraGraphicsICropImage Method

Crops an image to the supplied dimensions.

Namespace:  Zebra.Sdk.Card.Graphics
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
byte[] CropImage(
	byte[] imageData,
	int x,
	int y,
	int width,
	int height
)

Parameters

imageData
Type: SystemByte
The bitmap image data.
x
Type: SystemInt32
The x coordinate of the cropped image.
y
Type: SystemInt32
The y coordinate of the cropped image.
width
Type: SystemInt32
The width of the cropped image.
height
Type: SystemInt32
The height of the cropped image.

Return Value

Type: Byte
Bitmap data containing the cropped image.
Exceptions
ExceptionCondition
ZebraIllegalArgumentExceptionIf there is an error with the provided arguments.
ZebraCardExceptionIf an error occurs while cropping the image.
See Also