diff --git a/docs/xml/lcl/graphics.xml b/docs/xml/lcl/graphics.xml index 0ef16d301e..f255b1957d 100644 --- a/docs/xml/lcl/graphics.xml +++ b/docs/xml/lcl/graphics.xml @@ -14833,37 +14833,29 @@ Loads image data for the bitmap from the specified 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 +AStream. ASize contains the number of bytes to read in the method.

-LoadFromStream provides supported for loading image data from a resource -stream. When AStream is a TResourceStream instance, image headers present in -the stream are handled in the method. This allows resources created using -either the RT_BITMAP or the RT_RCDATA resource types to be handled. If both a -BMP file and BMP image header are found in the stream (RT_RCDATA), the -inherited method is called to load the image content. If the BMP file header is -omitted (RT_BITMAP), the header is created and populated with the endian-ness -for the platform and the size for the stream data. A temporary stream instance -which includes the constructed header is used to load the image content in the -inherited method. -

-

-If AStream is not a TResourceStream instance, the inherited method is called to -read the information in the stream using the specified size. +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). +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 -stream with content using either the RT_RCDATA or RT_BITMAP resource types. +resource stream containing either the RT_RCDATA or RT_BITMAP resource types. + + TBitmapFileHeader TResourceType RT_BITMAP