BaseGenerationParameters
BaseGenerationParameters class
Barcode image generation parameters.
new BaseGenerationParameters()
Methods
| Name | Description |
|---|---|
| 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. |
| getImage() | Image parameters. See ImageParameters. |
| 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 |
| getRotationAngle() | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If Ro |
| getUseAntiAlias() | Gets a value indicating whether is used anti-aliasing mode to render image |
| setAutoSizeMode() | Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE. |
| setBackColor() | Background color of the barcode image. Default value: #FFFFFF |
| 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 |
| setRotationAngle() | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If Ro |
| setUseAntiAlias() | Sets a value indicating whether is used anti-aliasing mode to render image |
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.
getImage()
Image parameters. See ImageParameters.
Returns: ImageParameters
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);
getUseAntiAlias()
Gets a value indicating whether is used anti-aliasing mode to render image
setAutoSizeMode()
Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE.
setBackColor()
Background color of the barcode image. Default value: #FFFFFF
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);
setUseAntiAlias()
Sets a value indicating whether is used anti-aliasing mode to render image