Gets the number of bytes for the given pixel format.
This returns a double value as packed formats can have a decimal number of bytes per pixel.