Adapted for use in WideImage. Code used with permission from the original author de77. http://de77.com/php/read-and-write-bmp-in-php-imagecreatefrombmp-imagebmp
static void imagebmp( &$img, [ $filename = false])
static void imagecreatefrombmp( $filename)
static void imagecreatefromstring( $data)