Returns data format with closest match with given bitmap pixel format.
function PixelFormatToDataFormat(Format: TPixelFormat): TImageFormat;
ImagingComponents (at line 289)