Sign in Join
FPDoc Onlineexperiment

TBitmap.GetReaderClass function

Member of TBitmapprotectedIn unit Graphics

Gets the class reference used to create the FCL-compatible reader for the image.

Declaration

pascal
class function GetReaderClass: TFPCustomImageReaderClass; override

Description

GetReaderClass is an overridden TFPCustomImageReaderClass class function used to get the FCL-compatible reader for the image type. The return value is a TLazReaderBMP class reference in TBitmap.

GetReaderClass is called from the ReadStream method when the reader is created and initialized. It is used to load a TLazIntfImage instance with the image content supplied in a stream. It is also used in the IsStreamFormatSupported method to determine if the stream contains an image format that can be read using the reader class type.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.