zplCore.comzplCore.com

OutputEncoder

public static class OutputEncoder

Final output stage: post-processing (flip, paper orientation, scaling, transparent paper) and encoding of rendered labels with all format options of ZplRenderSettings.

Methods

Method SignatureReturnsDescription
static # Encode(IReadOnlyList<SKBitmap> labels, ZplRenderSettings s)List<byte[]>Post-processes and encodes all labels per ZplRenderSettings.OutputFormat.
static # PostProcess(SKBitmap bitmap, ZplRenderSettings s)SKBitmapApplies ZplRenderSettings.Flip, ZplRenderSettings.PaperOrientation, ZplRenderSettings.ImageScaleX/ZplRenderSettings.ImageScaleY (image formats only) and ZplRenderSettings.TransparentBackground. Returns bitmap itself when nothing changes, otherwise a new bitmap owned by the caller.
static # Transform(SKBitmap src, ZplFlip flip, bool rotate90)SKBitmapMirrors and/or turns the bitmap 90° clockwise.