We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Resize the barcode image with text

I need to resize the barcode image with text. I am using Aspose barcode

following code is not working

Aspose.BarCode.BarCodeBuilder BarCodeBulder = new Aspose.BarCode.BarCodeBuilder();

In this height and width are dynamic, it will coming from database

This message was posted using Email2Forum by Tahir Manzoor.

Hi Piers,

Thank you for contacting support. Aspose.BarCode provides control over the barcode image size. Please refer to this helping topic: Generate Barcode Using Custom Width Support

The GetOnlyBarCodeImage method will allow you to get the exact bar code in the Bitmap format and then the GetCustomSizeBarCodeImage method will allow you to set the size of the whole picture with bar code inside. Please don’t truncate its original width or height otherwise you could face recognition failure problems.

Please feel free to contact us in case of any confusion or questions.