I would like to set custom resolution in Compact.NET version barcode builder, as well as changing the graphic unit to create customized images, but have no resolution property. The default graphic unit (according to documentation) is millimeter, and dots/pixels are required for creating barcodes with a decent precision, and the GraphicUnit property isn’t available either. Is that possible in any way using Compact.NET version barcode builder?
Are these properties only available in the full .NET version but not in the Compact one?
And by the way, which is the default image resolution in Compact .NET version of the barcode builder?
Thank you in advance.
Version used: 8.1 for Compact .NET Framework 3.5
Hi Albert,
Thank you for your inquiry.
This is to update you that Compact Framework has some restrictions so not all features are supported. We cannot overcome .NET Compact Framework limitations. Furthermore we have logged feature requests into our system with IDs BARCODENET-36274, BARCODENET-36276 for providing functionality to set resolution and graphics unit in Compact Framework respectively.
Following are the details about default values used by Aspose.BarCode API:
- width = 100
- height = 60
- xDimension = 1
- yDimension = 2
- barHeight = 40
- margins = new Margins(8, 6, 4, 2)
- borderWidth = 0
Hope the above information helps. Feel free to contact us in case you have any query or comments.
Thank you for your answer Ikram. I need to create barcodes with a specified size though, so I need a unit reference for these values (specially width and height). Are they millimeters? Points? To which resolution if so?
Thank you in advance.
Best regards,
Albert.
Hi Albert,
Thank you for writing us back.
You can adjust barcode image size and can set unit of the barcode image through code. Please follow the links given below for details:
The issues you have found earlier (filed as BARCODENET-36276;BARCODENET-36274) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Thank you very much for your support. Downloaded and tested, and both GraphicsUnit and Resolution seem to be working.
Best regards,
Albert.
Hi Albert,
Thank you for your feedback. Feel free to contact us in case you have any query or comments.