[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Loads image data for the bitmap from the specified stream.
Source position: graphics.pp line 1482
public procedure TBitmap.LoadFromStream( |
AStream: TStream; |
ASize: Cardinal |
); override; |
AStream |
|
Stream instance with the image data loaded in the method. |
ASize |
|
Number of bytes to read from the stream. |
LoadFromStream is an overridden method used to read data for the bitmap image from the TStream instance specified in AStream. ASize contains the number of bytes to read in the method.
The inherited method has been adapted for reading from a TResourceStream instance which can contain data as RT_BITMAP or RT_RCDATA resource types having slightly different binary structures.
LoadFromStream is called when the ReadData method is executed (in the TRasterImage ancestor) or when a TBitmap instance calls LoadFromResourceName or LoadFromResourceID.
Modified in LCL version 3.0 to provide support for loading image data from a resource stream containing either the RT_RCDATA or RT_BITMAP resource types.
|
LoadFromStream - loads data for the image from a specified data stream, optionally supplying its size. |
|
|
Reads image data during component streaming. |
|
|
Loads a resource with the specified name from the given handle. |
|
|
Load graphic data from a resource identified by the integer identifier ResID. |
|
|
||
|
||
|
||
|
||
Version 3.2 | Generated 2024-02-25 | Home |