PrinterUtilConvertGraphic Method (String, ZebraImageI, Int32, Int32, Stream)
|
Encodes supplied image in either ZPL or CPCL after dithering and resizing.
Namespace:
Zebra.Sdk.Printer
Assembly:
SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1869
Syntax public static void ConvertGraphic(
string filePathOnPrinter,
ZebraImageI image,
int width,
int height,
Stream convertedGraphicOutputStream
)
Public Shared Sub ConvertGraphic (
filePathOnPrinter As String,
image As ZebraImageI,
width As Integer,
height As Integer,
convertedGraphicOutputStream As Stream
)
public:
static void ConvertGraphic(
String^ filePathOnPrinter,
ZebraImageI^ image,
int width,
int height,
Stream^ convertedGraphicOutputStream
)
Parameters
- filePathOnPrinter
- Type: SystemString
The printer file path you wish to store the image to. - image
- Type: Zebra.Sdk.GraphicsZebraImageI
ZebraImage to be dithered and resized. - width
- Type: SystemInt32
Width of the resulting image. If 0 the image is not resized. - height
- Type: SystemInt32
Height of the resulting image. If 0 the image is not resized. - convertedGraphicOutputStream
- Type: System.IOStream
Stream to store converted image data encoded with the printers native
language.
Exceptions See Also