Sign in Join
FPDoc Onlineexperiment

TFPImageBitmap.IsFileExtensionSupported function

Member of TFPImageBitmappublicIn unit Graphics

Indicates whether the given file extension is supported for the image type.

Declaration

pascal
class function IsFileExtensionSupported(const FileExtension: string)
: Boolean

Description

IsFileExtensionSupported is a Boolean class function used to determine if the file extension in FileExtension is valid for the image type. If FileExtension includes a period character ('.'), it is removed before use.

The return value is True when FileExtension is included in the value returned by the GetFileExtensions method. No actions are performed in the method when FileExtension is an empty string ('').

IsFileExtensionSupported is used in the implementation of LazarusResourceTypeValid.

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