zplCore.comzplCore.com

ZplGraphicEncoder

public static class ZplGraphicEncoder

Image → ZPL graphic conversion with selectable dithering and ^GF data compression.

Online ausprobieren auf zplCloud.com: Bild zu ZPL

Methods

Method SignatureReturnsDescription
static # EncodeData(MonoBitmap mono, GraphicCompression compression)stringThe ^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)MonoBitmapConverts 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)stringComplete label ^XA^FOx,y^GFA…^FS^XZ printing the image.