[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TFPImageBitmap.IsStreamFormatSupported

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

## Declaration

Source position: graphics.pp line 1453

`public class function TFPImageBitmap.IsStreamFormatSupported(`
`Stream: TStream`
`):Boolean; override;`

## Function result

True when the stream contains a image data in a supported format.

## 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.