Skip to main content

TdxSmartImageCodec.Extensions Method

Returns all file name extensions that correspond to the image format.

Declaration

class function Extensions: string; virtual;

Returns

Type Description
string

The string with all image file name extensions delimited by semicolons.

Every file name extension in this string begins with an asterisk character and ends with a semicolon.

Remarks

Call the Extensions class function to obtain all file name extensions associated with the current image codec implementation. To obtain the default file name extension for an image format, call the TdxSmartImageCodecsRepository.GetDefaultExt class function.

Note

An image codec format description always consists of the uppercase default extension followed by the dxSmartImageCodecDescriptionSuffix global variable value.

Format-Specific Function Implementation

All terminal TdxSmartImageCodec class descendants override the virtual Extensions function to return format-specific file name extensions:

TdxSmartImageCodec Descendant Extensions Result
TdxGPImageCodecBMP '*.bmp;'
TdxGPImageCodecEMF '*.emf;'
TdxGPImageCodecGIF '*.gif;'
TdxGPImageCodecJPEG '*.jpeg;*.jpg;'
TdxGPImageCodecPNG '*.png;'
TdxGPImageCodecTIFF '*.tiff;*.tif;'
TdxGPImageCodecWMF '*.wmf;'
TdxSVGImageCodec '*.svg;'
See Also