|
zxing-cpp v3.0
|
#include <WriteBarcode.h>
Public Member Functions | |
| WriterOptions () | |
| ~WriterOptions () | |
| WriterOptions (WriterOptions &&) noexcept | |
| WriterOptions & | operator= (WriterOptions &&) noexcept |
| int | scale () const noexcept |
| WriterOptions & | scale (int v) & |
| WriterOptions && | scale (int v) && |
| int | rotate () const noexcept |
| WriterOptions & | rotate (int v) & |
| WriterOptions && | rotate (int v) && |
| bool | invert () const noexcept |
| WriterOptions & | invert (bool v) & |
| WriterOptions && | invert (bool v) && |
| bool | addHRT () const noexcept |
| WriterOptions & | addHRT (bool v) & |
| WriterOptions && | addHRT (bool v) && |
| bool | addQuietZones () const noexcept |
| WriterOptions & | addQuietZones (bool v) & |
| WriterOptions && | addQuietZones (bool v) && |
Configuration options for barcode writing/generation.
WriterOptions provides a fluent interface for setting various parameters that control how barcodes are generated.
This class supports method chaining for convenient option configuration:
| ZXing::WriterOptions::WriterOptions | ( | ) |
| ZXing::WriterOptions::~WriterOptions | ( | ) |
|
noexcept |
|
noexcept |
|
noexcept |
scale factor for rendering, ie the module size (default: 1). Passing a negative value will choose the scale automatically to fit the size of the barcode to abs(scale) as close as possible.
| WriterOptions & ZXing::WriterOptions::scale | ( | int | v | ) | & |
| WriterOptions && ZXing::WriterOptions::scale | ( | int | v | ) | && |
|
noexcept |
rotate the barcode by given degrees (0, 90, 180, 270)
| WriterOptions & ZXing::WriterOptions::rotate | ( | int | v | ) | & |
| WriterOptions && ZXing::WriterOptions::rotate | ( | int | v | ) | && |
|
noexcept |
invert the colors of the barcode
| WriterOptions & ZXing::WriterOptions::invert | ( | bool | v | ) | & |
| WriterOptions && ZXing::WriterOptions::invert | ( | bool | v | ) | && |
|
noexcept |
add human readable text (HRI) to the barcode
| WriterOptions & ZXing::WriterOptions::addHRT | ( | bool | v | ) | & |
| WriterOptions && ZXing::WriterOptions::addHRT | ( | bool | v | ) | && |
|
noexcept |
add quiet zones around the barcode (default: true)
| WriterOptions & ZXing::WriterOptions::addQuietZones | ( | bool | v | ) | & |
| WriterOptions && ZXing::WriterOptions::addQuietZones | ( | bool | v | ) | && |