Click or drag to resize

GraphicsUtilPrintImage(ZebraImageI, Int32, Int32, Int32, Int32, Boolean) Method

Prints an image to the connected device as a monochrome image.

Namespace: Zebra.Sdk.Printer
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
void PrintImage(
	ZebraImageI image,
	int x,
	int y,
	int width,
	int height,
	bool insideFormat
)

Parameters

image  ZebraImageI
The image to be printed.
x  Int32
Horizontal starting position in dots.
y  Int32
Vertical starting position in dots.
width  Int32
Desired width of the printed image. Passing a value less than 1 will preserve original width.
height  Int32
Desired height of the printed image. Passing a value less than 1 will preserve original height.
insideFormat  Boolean
Boolean value indicating whether this image should be printed by itself (false), or is part of a format being written to the connection (true).
Exceptions
ExceptionCondition
ConnectionExceptionIf an I/O error occurs.
Remarks
If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryException.
See Also