in the past we used BarCodeGenerator in Aspose.Barcode 19.5. Now we would like to upgrade to newer version. Unfortunateley there has been an API change (BARCODENET-37206) and BarCodeGenerator has changed.
I am not sure how to migrate the following code, especially setting the margins, location and encodeMode of DataMatrix . Can you help me?
Thanks a lot.
try
{
generator = new BarCodeGenerator(barcodeType, barcodeValue);
generator.getMargins().getTop().setPixels(0);
generator.getMargins().getBottom().setPixels(0);
generator.getMargins().getLeft().setPixels(0);
generator.getMargins().getRight().setPixels(0);
generator.getCodeTextStyle().setLocation(CodeLocation.NONE);
if (EncodeTypes.DATA_MATRIX.equals(barcodeType))
{
generator.getDataMatrix().setEncodeMode(DataMatrixEncodeMode.FULL);
}