Prints an image from the Windows Mobile device file system to the connected printer as a monochrome image.

Namespace:  ZSDK_API.Printer
Assembly:  ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0

Syntax

C#
void PrintImage(
	string imageFilePath,
	int x,
	int y
)
Visual Basic (Declaration)
Sub PrintImage ( _
	imageFilePath As String, _
	x As Integer, _
	y As Integer _
)

Parameters

imageFilePath
Type: System..::.String
Full path to image file.
x
Type: System..::.Int32
Horizontal starting position in dots.
y
Type: System..::.Int32
Vertical starting position in dots.

Remarks

If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or throw an exception.

Exceptions

ExceptionCondition
ZSDK_API.ApiException..::.ZebraPrinterConnectionExceptionIf there is an issue communicating with the printer (e.g. the connection is not open).
ZSDK_API.ApiException..::.ZebraGeneralExceptionIf there are issues rendering the graphic.

See Also