zplCore.comzplCore.com
class6 members

ZplExport

public static class ZplExport

Image/PDF/GRF encoders.

Methods

Method SignatureReturnsDescription
static # Encode(SKBitmap bitmap, ZplOutputFormat format, int quality = 95, int dpi = 203)byte[]
static # ToBmp(SKBitmap bmp)byte[]24-bit BMP (Skia has no BMP encoder).
static # ToGrfZpl(SKBitmap bitmap, bool compress = true)stringThe label as a single ^GFA graphic inside ^XA…^XZ.
static # ToPdf(IEnumerable<SKBitmap> bitmaps, ZplRenderSettings s)byte[]PDF with metadata from the settings; either one page per label (label size) or, with ZplRenderSettings.PaperWidth/ZplRenderSettings.PaperHeight, labels laid out on sheets.
static # ToPdf(IEnumerable<SKBitmap> bitmaps, int dpi)byte[]One PDF page per bitmap, sized to the physical label.
static # ToPdf(IEnumerable<SKBitmap> bitmaps, int dpi, int imageQuality)byte[]One PDF page per bitmap with the given image quality: 101 = lossless (as ZplExport.ToPdf), 1–100 = JPEG of that quality (smaller for labels with photos or grey images; plain black-and-white labels are usually smaller lossless).