30 std::unique_ptr<Data> d;
38#define ZX_PROPERTY(TYPE, NAME) \
39 TYPE NAME() const noexcept; \
40 WriterOptions& NAME(TYPE v)&; \
41 WriterOptions&& NAME(TYPE v)&&;
The Barcode class encapsulates a decoded or created barcode symbol.
Definition Barcode.h:64
Simple class that inherits ImageView but owns the image data and frees it on destruction.
Definition ImageView.h:164
Configuration options for barcode writing/generation.
Definition WriteBarcode.h:27
int scale() const noexcept
WriterOptions(WriterOptions &&) noexcept
bool addHRT() const noexcept
add human readable text (HRI) to the barcode
bool addQuietZones() const noexcept
add quiet zones around the barcode (default: true)
int rotate() const noexcept
rotate the barcode by given degrees (0, 90, 180, 270)
bool invert() const noexcept
invert the colors of the barcode
Image WriteBarcodeToImage(const Barcode &barcode, const WriterOptions &options={})
Write barcode symbol to Image (Bitmap).
std::string WriteBarcodeToUtf8(const Barcode &barcode, const WriterOptions &options={})
Write barcode symbol to a utf8 string using graphical characters (e.g. '▀').
std::string WriteBarcodeToSVG(const Barcode &barcode, const WriterOptions &options={})
Write barcode symbol to SVG.