Welcome to LEAD Support Forum Login | Register | Faq  

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

Determining barcode width
Started by RobbAllen at 01-21-2008 10:41. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  01-21-2008, 10:41
RobbAllen is not online. Last active: 1/14/2008 8:52:57 PM RobbAllen

Top 500 Posts
Joined on 01-14-2008
Posts 8
Determining barcode width
Reply Quote
Is there an easy way to determine the extent of a Barcode1dRss14ExpandedStackedRows2 when rendered given a specific image?

The RasterImage is set up for 300x150, but the barcode doesn't necessarily fill up that entire width. I'd like to crop the image so that only the barcode is visible.

Thanks
   Report 
  01-22-2008, 9:46
Qasem Lubani is not online. Last active: 9/28/2008 12:30:21 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,090
Re: Determining barcode width
Reply Quote

Check the "sizeRectangle" property of the Leadtools.Barcode.Write method. If you pass a valid rectangle for this property, the engine will update it with the size of the barcode and not actually write the barcode on the image. You can use this value to crop the image to the correct size, then actually write the barcode.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » LEAD/Axtel Barc... » Barcode » Determining barcode width

Powered by Community Server, by Telligent Systems