FMX.Objects.TImage
Delphi
TImage = class(TControl, IBitmapObject, IMultiResBitmapObject)
C++
class PASCALIMPLEMENTATION TImage : public Fmx::Controls::TControl
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | FMX.Objects |
Description
TImage defines 2D image components. It inherits TControl and can be used in styles to construct controls.
Use TImage to display a graphical image on a control.
Use the MultiResBitmap property to specify the multi-resolution set of bitmaps the most appropriate of which will be displayed as the picture on this TImage control. The TImage control shows the bitmap item with the scale best matching to the device resolution. See in the Bitmap property which algorithm is used to define the most appropriate bitmap item.
You can find the list of supported picture formats in TBitmapCodecManager.
Use the WrapMode property to specify whether and how to resize, replicate, and position the bitmap image for rendering the TImage surface.
Notice that if any BitmapMargins is defined, then WrapMode is ignored.
See Also
- FMX.Graphics.TBitmapCodecManager
- FMX.Graphics.TBitmap
- FMX.Objects.TImage.Bitmap
- Using Multi-Resolution Bitmaps