TcxImageFitMode Enum
Enumerates size calculation options used to fit an image into an area.
Declaration
TcxImageFitMode = (
ifmNormal,
ifmStretch,
ifmProportionalStretch,
ifmFit,
ifmFill
);
Members
Name | Description |
---|---|
ifmNormal
|
An image does not resize. The image is cropped if it does not fit into the target area. |
ifmStretch
|
An image stretches or shrinks to fill the target area. This mode ignores the image’s original aspect ratio. |
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. |
ifmFit
|
An image does not resize if it fits into the target area. Otherwise, the image proportionally shrinks to fit into the area. |
ifmFill
|
A centered image stretches to fill the target area. The image maintains its aspect ratio and can leave portions of the target area blank as in proportional stretch mode. |
Remarks
The following properties reference the TcxImageFitMode type: