Skip to main content

TdxCustomSmartImage.ImageCodec Property

Specifies the active image format codec.

Declaration

property ImageCodec: TdxSmartImageCodecClass read; write;

Property Value

Type Description
TdxSmartImageCodecClass

The reference to the active image format codec.

Refer to the following section for the full list of image codecs shipped with DevExpress VCL products: Property Values.

Remarks

Use the ImageCodec property to identify the current image format or convert the stored image to a different format. All supported formats are implemented as codec classes derived from the TdxSmartImageCodec class. All image format implementations (except for SVG available in DevExpress VCL products rely on the native image format encoder functionality of the Windows Imaging Component (WIC).

Property Values

DevExpress VCL products ship with the following image codec classes registered in the Smart Image codec repository:

Value Image Format File Name Extensions[1] MimeType[2]
TdxGPImageCodecBMP Device-Independent Bitmap (BMP/DIB) '*.bmp;' 'image/bmp'
TdxGPImageCodecEMF Enhanced Windows Metafile (EMF) '*.emf;' 'image/emf'
TdxGPImageCodecGIF Graphics Interchange Format (GIF) '*.gif;' 'image/gif'
TdxGPImageCodecJPEG Joint Photographic Experts Group (JPEG) *.jpeg;*jpg; 'image/jpg'
TdxGPImageCodecPNG Portable Network Graphics (PNG) '*.png;' 'image/png'
TdxGPImageCodecTIFF Tagged Image File Format (TIFF) '*.tiff;*.tif;' 'image/tiff'
TdxGPImageCodecWMF Windows Metafile (WMF) '*wmf' 'image/wmf'
TdxSVGImageCodec Scalable Vector Graphics (SVG) '*.svg;' 'image/svg+xml'

Smart Image Codec Repository

The TdxSmartImageCodecsRepository class implements a repository that manages references to all TdxSmartImageCodec class descendants and allows DevExpress components to work with images in all supported formats in a uniform manner.

Footnotes
  1. This column lists strings of file name extensions associated with corresponding image formats.

    The TdxSmartImageCodec.Extensions class function returns these strings for corresponding TdxSmartImageCodec class descendants listed in the first column.

  2. This column lists multi-purpose internet mail extension (MIME) content types associated with corresponding image formats.

    The TdxSmartImageCodec.MimeType class function returns these strings for corresponding TdxSmartImageCodec class descendants listed in the first column.

See Also