[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TFPImageBitmap.GetMimeType

Gets the MIME type used for the image data in the image type.

Declaration

Source position: graphics.pp line 1433

protected function TFPImageBitmap.GetMimeType: string; override;

Function result

MIME type used for the image data in the class.

Description

GetMimeType is an overridden String function used to get the MIME type for the image data in the class instance.

Calls GetFileExtensions to get the delimited list of file extensions supported for the image type. The list is an empty string in TFPImageBitmap. Descendent classes provide value(s) which reflect the image formats supported in their implementations.

GetMimeType extracts the first file extension in the list (separated by a SemiColon character), and uses the file extension in the return value. For example:

Remark: GetMimeType is not implemented in the current LCL version.

See also

TFPImageBitmap.GetFileExtensions

  

Returns a list of the file extensions available for the image type.

TRasterImage.GetMimeType

  

Gets the value for the MimeType property.

TGraphic.GetMimeType

  

Gets the value for the MimeType property.


Version 4.0 Generated 2025-05-03 Home