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

Free Support Forum - aspose.com

Image Size Problem

Hi.

I'm doing some tests with Barcode-generating.
I have built a little test-application with an older version of aspose.barcode (V 1.6.0.0) and it works fine. But with the new version (V 2.1.0.0), the generated images had a different size and i am not able to adjust it.

I could reproduce the same with the build in sample 'BarCodeWinForm.VB'.
In that project, i have made a little change to build Datamatrix-Barcode (just add 'Datamatrix' in the cmbSym ComboBox).

With Version 1.6.0.0 i get a barcode-image of 56x129 pixel
With Version 2.1.0.0 i get a barcode-image of 20x308 pixel - with a very big 'Aspose-Demo' text

Any Ideas? Is it a problem of the demoversion?

Thank You. Christian

Hello Christian,

Thank you for your post!

In V1.6.0.0, we've added a restriction to the datamatrix and pdf417, by not allowing the modules to be too small, so that those demo pictures will be of a decent size when default value is used.

But later on, some of our users complained that the image is two large. And we decided to remove the restrictions on the module's minimun size which is decided by xDimension property.

Could you please try to increase the xDimension property of BarCodeBuilder, to see if that's what you mean?

Best regards.

Setting xDimension to 1.4 gets the right image-size with V2.1

Thank You for Your quick help. Christian.