Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSmartImageCodec.MimeType Method

Returns the MIME content type associated with the image format that corresponds to the codec.

#Declaration

Delphi
class function MimeType: string; virtual;

#Returns

Type Description
string

The image format MIME type string.

#Remarks

Call the MimeType class function to obtain the multipurpose internet mail extension (MIME) content type for the image format that corresponds to the current image codec implementation.

#Format-Specific Function Implementation

All terminal TdxSmartImageCodec class descendants override the virtual MimeType function to return format-specific MIME content type:

TdxSmartImageCodec Descendant MimeType Result
TdxGPImageCodecBMP 'image/bmp'
TdxGPImageCodecEMF 'image/emf'
TdxGPImageCodecGIF 'image/gif'
TdxGPImageCodecJPEG 'image/jpg'
TdxGPImageCodecPNG 'image/png'
TdxGPImageCodecTIFF 'image/tiff'
TdxGPImageCodecWMF 'image/wmf'
TdxSVGImageCodec 'image/svg+xml'
See Also