WritePDF417Barcode sizing question

Barcode SDK/ActiveX related topics

WritePDF417Barcode sizing question

Postby rwilchek » Tue Sep 30, 2014 8:12 am

I am using WritePDF417Barcode to create an image of a 2D barcode. I want to determine the exact measurements of the DIB based on the data. Such that the resulting image is just the generated barcode.
Given the size of the data in bytes I want to calculate out the best fit rectangle for the CreateEmptyDIB call.

hDib = newDib.CreateEmptyDIB(1050, 400, 300, 300, 8, true);

The problem I have is that if I pick an arbitrary value, sometimes the barcode will generate just fine but have a lot of white space around it, and if I have too much data, it causes the barcode to fail to create.

Thank you!

Robert
rwilchek
 
Posts: 1
Joined: Mon Aug 18, 2014 9:31 am

Re: WritePDF417Barcode sizing question

Postby Visuretae » Fri Jul 13, 2018 2:13 am

I am really appreciative of this.
Visuretae
 
Posts: 1
Joined: Thu Jul 12, 2018 11:55 pm


Return to Barcode SDK/ActiveX



Who is online

Users browsing this forum: No registered users and 1 guest

cron