This class can be used to create an image file in the BMP format from a GD image resource. The class takes a GD image resource handle, reads its pixels, and generates a 24 bit BMP image. The resulting image can be saved to a given file or served as the current script output.