-
Hi, CreatorOptions has a string field "ecLevel" so I supposed I should use "L", "M", "Q", "H" but as it turns out one has to use "0" to "8". |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
AFAIK, zint is used. The zint parameter "error correction level" may be applicable to multiple symbologies (PDF417,Aztec,QR).
|
Beta Was this translation helpful? Give feedback.
-
@oehhar is right but with an asterisk: The If that does not work, then the old |
Beta Was this translation helpful? Give feedback.
@oehhar is right but with an asterisk: The
CreatorOptions
machinery useszint
iff you configurezxing-cpp
withZXING_WRITERS=NEW
(orBOTH
). I suspect you did not do that, because if you would, then passing any of "L", "M", "Q", "H" for the QRCode symbologies would actually work. Alternatively, you could pass plain numbers 1-4 as well as a percentage like "50%".If that does not work, then the old
MultiFormatWriter
is used in the background (ZXING_WRITERS=ON
) and there, the mapping is different for historical reasons: 0-8 are mapped like this 0/1 -> L, 2/3 -> M, etc. (IIRC). I actually don't intend to properly release the old writers as a backend for the new API.