Skip to content

Question regarding EC Level in CreatorOptions #958

Answered by axxel
magethle asked this question in Q&A
Discussion options

You must be logged in to vote

@oehhar is right but with an asterisk: The CreatorOptions machinery uses zint iff you configure zxing-cpp with ZXING_WRITERS=NEW (or BOTH). 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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by magethle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy