FMX.Objects.TImage.WrapMode
Delphi
property WrapMode: TImageWrapMode read FWrapMode write SetWrapMode default TImageWrapMode.Fit;
C++
__property TImageWrapMode WrapMode = {read=FWrapMode, write=SetWrapMode, default=1};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | published | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | TImage |
Description
Specifies whether and how to resize, replicate, and position the bitmap image for rendering the TImage surface.
The WrapMode property should be one of the constants defined in the TImageWrapMode type:
Originaldisplays the image with its original dimensions.Fitprovides the best fit, keeping image proportions (the ratio between the width and height) for the TImage rectangle. If needed, the image is scaled down or stretched to best fit the rectangle area. This is the default option.Stretchstretches the image to fill the entire rectangle of the TImage component.Tiletiles the TImage image to cover the entire rectangle of the TImage component.Centercenters the image to the rectangle of the TImage component. The image is never resized, regardless the size of the rectangle of the TImage component.Placefits the image into the TImage rectangle. If the width or height of the image is greater than the corresponding dimension of the TImage rectangle, then the image is scaled down keeping image proportions (the ratio between the width and height) to fit in the TImage rectangle. The obtained image is centered in the TImage rectangle.Placeonly makes images smaller, never larger.