TdxSmartImageCodec.MimeType Method
Returns the MIME content type associated with the image format that corresponds to the codec.
Declaration
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