FMX.Graphics.TBitmap.LoadFromStream
Delphi
procedure LoadFromStream(Stream: TStream);
C++
void __fastcall LoadFromStream(System::Classes::TStream* Stream);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TBitmap |
Description
Loads from a stream the image content of the TBitmap object.
It replaces any existing image. The object is resized to match the image.
Note: The loaded image's visible size can be affected if the TBitmap is contained in other components, like TImage or TImageControl.
The Stream parameter specifies the stream.
TBitmap remains unchanged if Stream uses an unsupported image format or is not actually an image. LoadFromStream does not raise any errors in this case.
Note: For a list of formats supported by each platform, see TBitmapCodecManager.