Click or drag to resize

PrinterUtilConvertGraphic(String, ZebraImageI, Int32, Int32, Stream) Method

Encodes supplied image in either ZPL or CPCL after dithering and resizing.

Namespace: Zebra.Sdk.Printer
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
public static void ConvertGraphic(
	string filePathOnPrinter,
	ZebraImageI image,
	int width,
	int height,
	Stream convertedGraphicOutputStream
)

Parameters

filePathOnPrinter  String
The printer file path you wish to store the image to.
image  ZebraImageI
ZebraImage to be dithered and resized.
width  Int32
Width of the resulting image. If 0 the image is not resized.
height  Int32
Height of the resulting image. If 0 the image is not resized.
convertedGraphicOutputStream  Stream
Stream to store converted image data encoded with the printers native language.
Exceptions
ExceptionCondition
ZebraIllegalArgumentExceptionIf the file type is not supported or an invalid image is supplied.
IOExceptionCould not read/write to file.
See Also