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