BaseGenerationParameters

BaseGenerationParameters

Barcode image generation parameters.

Constructor

new BaseGenerationParameters()

Source:

Methods

getAutoSizeMode()

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

getBackColor()

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

getBarcode()

Gets the BarcodeParameters that contains all barcode properties.
Source:

getBorder()

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

getCaptionAbove()

Caption Above the BarCode image. See CaptionParameters.
Source:

getCaptionBelow()

Caption Below the BarCode image. See CaptionParameters.
Source:

getImage()

Image parameters. See ImageParameters.
Returns:
Type Description
ImageParameters
Source:

getImageHeight()

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

getImageWidth()

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

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.
Source:

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.
Source:
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);

getUseAntiAlias()

Gets a value indicating whether is used anti-aliasing mode to render image
Source:

setAutoSizeMode()

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

setBackColor()

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

setBarcode()

Gets the BarcodeParameters that contains all barcode properties.
Source:

setCaptionAbove()

Caption Above the BarCode image. See CaptionParameters.
Source:

setCaptionBelow()

Caption Below the BarCode image. See CaptionParameters.
Source:

setImageHeight()

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

setImageWidth()

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

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.
Source:

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.
Source:
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);

setUseAntiAlias()

Sets a value indicating whether is used anti-aliasing mode to render image
Source: