Show: Delphi C++
Display Preferences

FMX.Graphics.TBitmap.CreateFromFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor CreateFromFile(const AFileName: string); virtual;

Properties

Type Visibility Source Unit Parent
constructor public FMX.Graphics.pas FMX.Graphics TBitmap

Description

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

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance