I have following Requirements for generation of Aztec bar code. Requirement 1
Length: 39 mm Height: 39 mm Error correction: 25% Module size: 0.8 mm Margin size: 5 mm
Requirement 2
Length: 20 mm
Height: 20 mm
Error correction: 20%
Module size: 4 mm
Margin size: 0 mm
Queries:
a. what parameters can influence the size of Aztec bar code? not sure whether we can use setWidth and setHeight parameters.In my analysis i learned that, size of bar code changes only when you are changing the ERROR_LEVEL apart from this i could not find any other setting which really can influence the bar code size.
b. How to use the Module Size (for Aztec bar code) in Aspose API.
c I couldn’t find API where we can set the ERROR percentage what ever we want. I guess i have to find the closest one in following constants which is AZTECERRORLEVEL_MIN in my case.
(a) The size of barcode depends on the following parameters:
The length (size) of codetext. Larger codetext value will generate large size of barcode
setXDimension() and setYDimension() methods. You can set lower values (less than 1.0F) to reduce the size of barcode. See sample code snippet below
setHeight() and setWidth() methods. But, the image will be cropped, if large barcode is generated and width/height is smaller than the size of actual generated barcode.
(b) Regarding setting of the module size, I will get back to you after consulting with the developers.
Thanks for using Aspose products. I have merged your threads together so we can follow up your issues better. The forums is the best way to get technical support. I apologize for the late reply and I hope we can do it better.