FMX.Graphics.TBitmapCodecManager.LoadFromFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function LoadFromFile(const AFileName: string; const ABitmap: TBitmapSurface;  const AMaxSizeLimit: Cardinal = 0): Boolean;

C++

__classmethod bool __fastcall LoadFromFile(const System::UnicodeString AFileName, Fmx::Surfaces::TBitmapSurface* const ABitmap, const unsigned AMaxSizeLimit = (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.

See Also