Click or drag to resize

ZebraCardGraphicsCropImage Method

Crops an image to the supplied dimensions.

Namespace:  Zebra.Sdk.Card.Graphics
Assembly:  SdkApi_Card_Desktop (in SdkApi_Card_Desktop.dll) Version: 2.14.1989
Syntax
public 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.

Implements

ZebraGraphicsICropImage(Byte, Int32, Int32, Int32, Int32)
Exceptions
ExceptionCondition
ZebraIllegalArgumentExceptionIf there is an error with the provided arguments.
ZebraCardExceptionIf an error occurs while cropping the image.
See Also