Sign in Join
FPDoc Onlineexperiment

TFPImageBitmap.IsStreamFormatSupported function

Member of TFPImageBitmappublicIn unit Graphics

Determines if the specified stream contains image data supported for the image type.

Declaration

pascal
class function IsStreamFormatSupported(Stream: TStream): Boolean
 ; override

Description

IsStreamFormatSupported is an overridden TFPImageBitmap class function used to determine if the stream specified in Stream contains image data supported in the image type.

IsStreamFormatSupported creates a temporary instance of the TFPCustomImageReader used for the image type, and calls its CheckContents method to examine the values in Stream. The return value is True when the FCL image reader recognizes the image format.

IsStreamFormatSupported saves the position in Stream on entry, and restores the position prior to exiting from the method.

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