Sign in Join
FPDoc Onlineexperiment

TFPImageBitmap.GetMimeType function

Member of TFPImageBitmapprotectedIn unit Graphics

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

Declaration

pascal
function GetMimeType: string; override

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:

  • 'image/bmp'
  • 'image/gif'
  • 'image/jpg'
  • 'image/png'
  • 'image/tiff'
  • 'image/xpm'
GetMimeType is not implemented in the current LCL version.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.