Class BarCodeAspectSide
Chooses the side of barcode to keep aspect size using IronBarCode. This enum is related to BarCodeAspectSide with the side to keep.
Inheritance
Namespace: IronBarCode
Assembly: IronBarCode.dll
Syntax
public sealed class BarCodeAspectSide : Enum
BarCodeAspectSide chooses which dimension keeps its default ratio when IronBarcode resizes a generated barcode, so the other dimension stretches to fill the requested size. Horizontal keeps the width at the default ratio and stretches the height, and Vertical keeps the height at the default ratio and stretches the width. It is supplied to GeneratedBarcode.KeepAspectRatio. The create 1D barcodes how-to covers sizing generated output.
barcode.KeepAspectRatio(true, BarCodeAspectSide.Horizontal);Fields
Horizontal
Keep width to the default ratio and will stretch height.
Declaration
public const BarCodeAspectSide Horizontal
Field Value
| Type | Description |
|---|---|
| BarCodeAspectSide |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Vertical
Keep height to the default ratio and will stretch width.
Declaration
public const BarCodeAspectSide Vertical
Field Value
| Type | Description |
|---|---|
| BarCodeAspectSide |