ModernImageFormatName

Image handling, Capability discovery

Description

Returns the display name of a modern image format value

Syntax

Delphi

Function ModernImageFormatName(ImageFormat: TPDFlibModernImageFormat): AnsiString;

Parameters

ImageFormatFormat value, typically from DetermineModernImageFormat

Return values

AVIF / HEIF / JPEG XLThe canonical display name of the format
UnknownmifUnknown or any value outside the enumeration

Remarks

Handy for log lines and diagnostics when a decode falls back or a codec module is missing a coder for one particular format

See also

DetermineModernImageFormat, ModernImageCodecAvailable