new BaseGenerationParameters()

Methods

getAutoSizeMode()

Specifies the different types of automatic sizing modes.
Default value: AutoSizeMode.NONE.

getBackColor()

Background color of the barcode image.
Default value: #FFFFFF

getBarcode()

Gets the BarcodeParameters that contains all barcode properties.

getBorder()

Gets the BorderParameters that contains all configuration properties for barcode border.

getCaptionAbove()

Caption Above the BarCode image. See CaptionParameters.

getCaptionBelow()

Caption Below the BarCode image. See CaptionParameters.

getImageHeight()

BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

getImageWidth()

BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

getResolution()

Gets the resolution of the BarCode image.
One value for both dimensions.
Default value: 96 dpi.

The Resolution parameter value is less than or equal to 0.

getRotationAngle()

BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation.
If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image
. Default value: 0.

Example

//This sample shows how to create and save a BarCode image.
    let generator = new BarcodeGenerator( EncodeTypes.DATA_MATRIX);
    generator.getParameters().setRotationAngle(7);
    generator.save("test.png", BarcodeImageFormat.PNG);

setAutoSizeMode()

Specifies the different types of automatic sizing modes.
Default value: AutoSizeMode.NONE.

setBackColor()

Background color of the barcode image.
Default value: #FFFFFF

setBarcode()

Gets the BarcodeParameters that contains all barcode properties.

setCaptionAbove()

Caption Above the BarCode image. See CaptionParameters.

setCaptionBelow()

Caption Below the BarCode image. See CaptionParameters.

setImageHeight()

BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

setImageWidth()

BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

setResolution()

Sets the resolution of the BarCode image.
One value for both dimensions.
Default value: 96 dpi.

The Resolution parameter value is less than or equal to 0.

setRotationAngle()

BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation.
If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image.
Default value: 0.

Example

//This sample shows how to create and save a BarCode image.
    let generator = new BarcodeGenerator( EncodeTypes.DATA_MATRIX);
    generator.getParameters().setRotationAngle(7);
    generator.save("test.png", BarcodeImageFormat.PNG);