WritePDF417Barcode sizing question

Barcode SDK/ActiveX related topics
Post Reply
Posts: 1
Joined: Mon Aug 18, 2014 9:31 am

WritePDF417Barcode sizing question

Post by 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!


Posts: 1
Joined: Thu Jul 12, 2018 11:55 pm

Re: WritePDF417Barcode sizing question

Post by Visuretae » Fri Jul 13, 2018 2:13 am

I am really appreciative of this.

Post Reply