Regarding the writeBarcode API, how to specify width and height? The sizeHint parameter doesn't seem to work. #247
Unanswered
xiaoqiaotq
asked this question in
Q&A
Replies: 1 comment
-
|
For bitmaps (.png), a general way to specify accurate pixels for barcode generation is not possible, because each block or bar in a barcode has to follow certain spec to be distinguishable for it to be decoded. For vector images (.svg), there's no point specifiying dimensions where it can be scaled easily as you wish. You can use CSS style or post process the image with canvas API or other tools to transform it, depending on how you'd use it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions