API:FMX.Import.TGEBitmap.CreateFromFile
Delphi
constructor CreateFromFile(const AFileName: string); override;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | FMX.Import.pas | FMX.Import | TGEBitmap |
Description
Constructs a TBitmap object by loading its image content from a file specified by the AFileName
parameter.
FMX.Import.TGEBitmap.CreateFromFile inherits from FMX.Graphics.TBitmap.CreateFromFile. All content below this line refers to FMX.Graphics.TBitmap.CreateFromFile.
Constructs a TBitmap object by loading its image content from a file specified by the AFileName
parameter.
If AFileName
is not a valid bitmap image or it does not exist, the new TBitmap will be empty (with its dimensions equal to 0).
Note: For a list of formats supported by each platform, see TBitmapCodecManager.
See Also
- FMX.Graphics.TBitmap.LoadFromFile
- FMX.Graphics.TBitmap.CreateFromBitmapAndMask
- FMX.Graphics.TBitmap.Create
- FMX.Graphics.TBitmap.CreateFromStream
- FMX.Graphics.TBitmap.Destroy
- System.TObject.Free