
## BaseGenerationParameters class

Barcode image generation parameters.

```js
new BaseGenerationParameters()
```

## Methods

| Name | Description |
| --- | --- |
| [getAutoSizeMode()](#getautosizemode) | Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE. |
| [getBackColor()](#getbackcolor) | Background color of the barcode image. Default value: #FFFFFF |
| [getBarcode()](#getbarcode) | Gets the BarcodeParameters that contains all barcode properties. |
| [getBorder()](#getborder) | Gets the BorderParameters that contains all configuration properties for barcode border. |
| [getCaptionAbove()](#getcaptionabove) | Caption Above the BarCode image. See CaptionParameters. |
| [getCaptionBelow()](#getcaptionbelow) | Caption Below the BarCode image. See CaptionParameters. |
| [getImage()](#getimage) | Image parameters. See ImageParameters. |
| [getImageHeight()](#getimageheight) | BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION. |
| [getImageWidth()](#getimagewidth) | BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION. |
| [getResolution()](#getresolution) | Gets the resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. The Resolution parameter |
| [getRotationAngle()](#getrotationangle) | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If Ro |
| [getUseAntiAlias()](#getuseantialias) | Gets a value indicating whether is used anti-aliasing mode to render image |
| [setAutoSizeMode()](#setautosizemode) | Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE. |
| [setBackColor()](#setbackcolor) | Background color of the barcode image. Default value: #FFFFFF |
| [setImageHeight()](#setimageheight) | BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION. |
| [setImageWidth()](#setimagewidth) | BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION. |
| [setResolution()](#setresolution) | Sets the resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. The Resolution parameter |
| [setRotationAngle()](#setrotationangle) | BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If Ro |
| [setUseAntiAlias()](#setuseantialias) | Sets a value indicating whether is used anti-aliasing mode to render image |

### getAutoSizeMode() {#getautosizemode}

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

### getBackColor() {#getbackcolor}

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

### getBarcode() {#getbarcode}

Gets the BarcodeParameters that contains all barcode properties.

### getBorder() {#getborder}

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

### getCaptionAbove() {#getcaptionabove}

Caption Above the BarCode image. See CaptionParameters.

### getCaptionBelow() {#getcaptionbelow}

Caption Below the BarCode image. See CaptionParameters.

### getImage() {#getimage}

Image parameters. See ImageParameters.

**Returns:** ImageParameters

### getImageHeight() {#getimageheight}

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

### getImageWidth() {#getimagewidth}

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

### getResolution() {#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() {#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:**

```js
//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() {#getuseantialias}

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

### setAutoSizeMode() {#setautosizemode}

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

### setBackColor() {#setbackcolor}

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

### setImageHeight() {#setimageheight}

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

### setImageWidth() {#setimagewidth}

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

### setResolution() {#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() {#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:**

```js
//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() {#setuseantialias}

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