zplCore.comzplCore.com

MonoBitmap

public sealed class MonoBitmap

A stored 1-bit graphic (~DG, ~DY, ^GF) — 1 = black, MSB first.

Constructors

SignatureDescription
# MonoBitmap(byte[] bits, int bytesPerRow, int height)

Properties

PropertyTypeDescription
Bits { get; }byte[]
BytesPerRow { get; }int
Height { get; }int
Width { get; }int

Methods

Method SignatureReturnsDescription
static # FromBitmap(SKBitmap source, byte threshold = 128, bool dither = false)MonoBitmapConverts any image to 1-bit using a luminance threshold (or Floyd–Steinberg dithering).
# ToGfa(bool compress = true)string^GFA command for this graphic (optionally Z64-compressed).