std:std.graphics.PixelFormatDepth

Function PixelFormatDepth:Int( format:PixelFormat )

Gets the number of bytes per pixel for a particular pixel format.