Skip to main content

TdxBarCodeFitMode Subrange Type

Enumerates available barcode size calculation modes.

Declaration

TcxImageFitMode = (ifmNormal, ifmStretch, ifmProportionalStretch, ifmFit, ifmFill);
TdxBarCodeFitMode = ifmNormal..ifmFit;

Members

Name Description
ifmFit An image does not resize if it fits into the target area. Otherwise, the image proportionally shrinks to fit into the area. Inherited from TcxImageFitMode.
ifmNormal An image does not resize. The image is cropped if it does not fit into the target area. Inherited from TcxImageFitMode.
ifmProportionalStretch A centered image stretches or shrinks to fill the target area. The image maintains its aspect ratio in this mode and can leave portions of the target area blank. Inherited from TcxImageFitMode.
ifmStretch An image stretches or shrinks to fill the target area. This mode ignores the image’s original aspect ratio. Inherited from TcxImageFitMode.

Remarks

This type enumerates all TcxImageFitMode type values, except ifmFill. Options include:

Value

Description`

ifmNormal

The barcode dimensions persist if the barcode control size changes. The control’s Properties.ModuleWidth property value determines the barcode’s size.

The control

If the control does not fit the barcode, it displays a warning instead.

ifmStretch

The control stretches or compresses the barcode to fill the display area and ignores the barcode’s original height-to-width ratio.

ifmProportionalStretch

This mode is similar to ifmStretch, but the barcode retains its aspect ratio.

ifmFit

The control’s Properties.ModuleWidth property value determines the barcode’s original size. If it exceeds the display area’s dimensions, the control shrinks the barcode to fit into the area and ignores the barcode’s original height-to-width ratio.

The barcode control’s Properties.FitMode property references the TdxBarCodeFitMode type.

Base Type

TcxImageFitMode
See Also