ZplGraphicEncoder
public static class ZplGraphicEncoderImage → ZPL graphic conversion with selectable dithering and ^GF data compression.
Try it online on zplCloud.com: Image to ZPL
Methods
| Method Signature | Returns | Description |
|---|---|---|
static # EncodeData(MonoBitmap mono, GraphicCompression compression) | string | The ^GF data field for a 1-bit graphic in the requested encoding. |
static # ToDownloadGraphic(MonoBitmap mono, string name, bool acs = true) | string | ~DG download (name like "R:LOGO.GRF") in ASCII hex / ACS so it can be recalled with ^XG. |
static # ToGraphicField(MonoBitmap mono, GraphicCompression compression = GraphicCompression.Auto) | string | ^GFA,total,total,bytesPerRow,data. |
static # ToGraphicField(SKBitmap image, GraphicCompression compression = GraphicCompression.Auto, DitherMode dither = DitherMode.Threshold, byte threshold = 128) | string | ^GFA graphic for an image. |
static # ToMono(SKBitmap source, DitherMode dither = DitherMode.Threshold, byte threshold = 128) | MonoBitmap | Converts an image to 1 bit (transparent pixels are paper). |
static # ToZpl(SKBitmap image, GraphicCompression compression = GraphicCompression.Auto, DitherMode dither = DitherMode.Threshold, int x = 0, int y = 0) | string | Complete label ^XA^FOx,y^GFA…^FS^XZ printing the image. |

