Show: Delphi
C++
Display Preferences
FMX.Objects.TImage.Bitmap
From XE3 API Documentation
Delphi
property Bitmap: TBitmap read FBitmap write SetBitmap;
C++
__property Fmx::Types::TBitmap* Bitmap = {read=FBitmap, write=SetBitmap};
Contents |
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | published | FMX.Objects.pas FMX.Objects.hpp |
FMX.Objects | TImage |
Description
Specifies the bitmap picture that will be displayed by this TImage component.
Set the Bitmap property to the bitmap picture that you want to be displayed by this TImage component. Reading Bitmap provides a TBitmap image that you can assign to other TImage components or you can save to a stream or a file.
For a list of image formats that are supported by this component, please refer to the TBitmapCodecManager API help topic.
You can also assign an image programmatically, as exemplified in the following code snippet:
Image1.Bitmap.LoadFromFile('MyImage.jpg');
See Also