From RAD Studio API Documentation
Jump to: navigation, search


constructor CreateFromFile(const AFileName: string); virtual;


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


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