FMX.Graphics.TBitmapCodecManager.LoadFromStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function LoadFromStream(const AStream: TStream; const ABitmap: TBitmapSurface;
const AMaxSizeLimit: Cardinal = 0): Boolean;

C++

__classmethod bool __fastcall LoadFromStream(System::Classes::TStream* const AStream, 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 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.


See Also