FMX.Graphics.TBitmapCodecManager.LoadFromFile
Delphi
class function LoadFromFile(const AFileName: string; const Bitmap: TBitmapSurface; const MaxSizeLimit: Cardinal = 0): Boolean;
C++
__classmethod bool __fastcall LoadFromFile(const System::UnicodeString AFileName, Fmx::Surfaces::TBitmapSurface* const Bitmap, const unsigned MaxSizeLimit = (unsigned)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TBitmapCodecManager |
Description
Loads from a file the image content of the specified TBitmap object.
LoadFromFile is an abstract method. The TBitmapCodecManager's descendants override it to decode and load an image from the file specified by the AFileName
parameter.
LoadFromFile loads the file image into TBitmap, which is specified by the Bitmap
parameter.
When calling LoadFromFile, the method of the proper decoder will be called automatically.
Note: For a list of formats supported by each platform, see TBitmapCodecManager.