Returns size in bytes of Width x Height area of pixels.
function GetPixelsSize(Format: TImageFormat; Width: LongInt; Height: LongInt): LongInt;
Imaging (at line 307)
Works for all formats.