Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

I used the LEAD\Axtel demo program to write a barcode into an image. I then printed the image, scanned the page, and was unable to read the barcode. What went wrong?
Started by Gabe-Forum@LEADTOOLS.com at 05-26-2006 10:10. Topic has 0 replies.

Print Search « Previous Thread Next Thread »
  05-26-2006, 10:10
Gabe-Forum@LEADTOOLS.com is not online. Last active: 7/18/2008 3:15:03 PM Gabe-Forum@LEADTOOLS.com



Top 25 Posts
Joined on 04-27-2005
Posts 237
I used the LEAD\Axtel demo program to write a barcode into an image. I then printed the image, scanned the page, and was unable to read the barcode. What went wrong?

Printing a bitmap is a complicated matter. It involves matching the DPI of the image to that of the printer. The Axtel DEMO program uses the following formula:

If the image DPI is the same as the printer DPI, the demo uses a 'BitBlt' to transfer the image to the print page. This means that the image data is copied directly to the printed page without any scaling. Should the image be larger than the page, the right and/or bottom edges are simply clipped.

If the printer DPI does not match the image DPI, 'StretchBlt' is used to scale the image to fit the print page. This makes the image appear to be the correct size but is dangerous for barcodes because some columns can be doubled while others not. For example, consider the case where the image is 200 DPI and the printer is 300 DPI. The image will be scaled up from 200 DPI to 300 DPI in order to match the printer DPI. This has the effect of duplicating every other pixel and introducing a distortion into the barcode. There are two possible solutions to this problem.

Solution One: Start with a 300 DPI TIFF image before writing the barcode. This way, printing to a 300 DPI printer will not distort the barcode.

Solution Two: Set the printer to 600 DPI. This will cause a more regular scaling of 200 DPI to 600 DPI. This will triple each pixel but will not introduce any distortion into the barcode.


   Report 
Post
LEAD Support Fo... » LEAD/Axtel Barc... » LEAD/Axtel FAQ » I used the LEAD\Axtel demo program to write a barcode into an image. I then printed the image, scanned the page, and was unable to read the barcode. What went wrong?

Powered by Community Server, by Telligent Systems