Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi All,

How can we expand the width of a barcode image ? I found that if I add 1 px to the width of the bitmap image it will become useless (I mean it can't read by my barcode reader). Please tell me the height and width ratio of barcode image...

Thanks a lot in advance....
Posted

1 solution

It isn't a height/width thing: barcodes are based on the relative widths of the four bar sizes - which applies equally to the light bar set and the dark bar set. Any tweaking of an image of a barcode will almost certainly reduce the readability, and quite likely render it unreadable.

Expand the width of the image at source - i.e. when you generate it, do not attempt to change them once created.
 
Share this answer
 
Comments
Silju MC 2-Sep-11 7:30am    
Thanks a lot. my 5+ :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900