Method to get format from a Bitmap

Query the format of a Bitmap