BaseGenerationParameters

BaseGenerationParameters class

Namespace: Aspose.Barcode.Generation

Barcode image generation parameters.

Constructors

NameDescription
__construct

Properties

NameRead/WriteDescription
AutoSizeModeRead/WriteSpecifies the different types of automatic sizing modes. Default value: AutoSizeMode::NONE.
BackColorRead/WriteBackground color of the barcode image. Default value: #FFFFFF
BarcodeRead/WriteGets the BarcodeParameters that contains all barcode properties.
BorderRead-onlyGets the BorderParameters that contains all configuration properties for barcode border.
CaptionAboveRead/WriteCaption Above the BarCode image.
CaptionBelowRead/WriteCaption Below the BarCode image.
ImageRead-onlyImage parameters. See ImageParameters.
ImageHeightRead/WriteBarCode image height when AutoSizeMode property is set to AutoSizeMode::NEAREST or AutoSizeMode::INTERPOLATION.
ImageWidthRead/WriteBarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode::INTERPOLATION.
ResolutionRead/WriteGets the resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi.
RotationAngleRead/WriteBarCode 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. This sample shows how to create and save a BarCode image.
UseAntiAliasRead/WriteGets a value indicating whether is used anti-aliasing mode to render image

BaseGenerationParameters__construct(BaseGenerationParametersDTO $baseGenerationParametersDto)

ParameterTypeDescription
$baseGenerationParametersDtoBaseGenerationParametersDTO

AutoSizeMode

Access: Read/Write

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

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

ParameterTypeDescription
$valueint

BackColor

Access: Read/Write

Returns: string value of background color.

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

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

ParameterTypeDescription
$hexValuestring

Barcode

Access: Read/Write

Gets the BarcodeParameters that contains all barcode properties.

Gets the BarcodeParameters that contains all barcode properties.

ParameterTypeDescription
$valueBarcodeParameters

Border

Access: Read-only

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

CaptionAbove

Access: Read/Write

Caption Above the BarCode image.

Caption Above the BarCode image.

ParameterTypeDescription
$valueCaptionParameters

CaptionBelow

Access: Read/Write

Caption Below the BarCode image.

Caption Below the BarCode image.

ParameterTypeDescription
$valueCaptionParameters

Image

Access: Read-only

Image parameters. See ImageParameters.

ImageHeight

Access: Read/Write

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

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

ParameterTypeDescription
$valueUnit

ImageWidth

Access: Read/Write

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

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

ParameterTypeDescription
$valueUnit

Resolution

Access: Read/Write

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

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

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

ParameterTypeDescription
$valuefloat

RotationAngle

Access: Read/Write

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. This sample shows how to create and save a BarCode image.

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. This sample shows how to create and save a BarCode image.

ParameterTypeDescription
$valuefloat

UseAntiAlias

Access: Read/Write

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

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

ParameterTypeDescription
$valuebool