FMX.Graphics.TBitmapCodecManager.LoadFromStream
Delphi
class function LoadFromStream(const AStream: TStream; const Bitmap: TBitmapSurface; const MaxSizeLimit: Cardinal = 0): Boolean;
C++
__classmethod bool __fastcall LoadFromStream(System::Classes::TStream* const AStream, 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 stream the image content of the current TBitmap object.
LoadFromStream is an abstract method. The TBitmapCodecManager's descendants override it to decode and load an image from the stream specified by the AStream
parameter.
LoadFromStream loads the file image into TBitmap, which is specified by the Bitmap
parameter.
When calling LoadFromStream, the method of the proper decoder will be called automatically.
Note: For a list of formats supported by each platform, see TBitmapCodecManager.