PrinterUtilConvertGraphic(String, ZebraImageI, Stream) Method
|
Encodes supplied image in either ZPL or CPCL after dithering and resizing.
Namespace: Zebra.Sdk.PrinterAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 4.0.3435
Syntaxpublic static void ConvertGraphic(
string filePathOnPrinter,
ZebraImageI image,
Stream convertedGraphicOutputStream
)
Public Shared Sub ConvertGraphic (
filePathOnPrinter As String,
image As ZebraImageI,
convertedGraphicOutputStream As Stream
)
public:
static void ConvertGraphic(
String^ filePathOnPrinter,
ZebraImageI^ image,
Stream^ convertedGraphicOutputStream
)
Parameters
- filePathOnPrinter String
- The printer file path you wish to store the image to.
- image ZebraImageI
- ZebraImage to be dithered and resized.
- convertedGraphicOutputStream Stream
- Stream to store encoded image data.
Exceptions| Exception | Condition |
|---|
| ZebraIllegalArgumentException | If the file type is not supported or an invalid image is supplied. |
| IOException | Could not read/write to file. |
See Also