BMP_loader v1.0 documentation

Constant fields

BITMAPCOREHEADERThe format string that represents the OS/2 V1 header type. It is used by the PHP unpack() function.
BITMAPINFOHEADERThe format string that represents the Windows V3 or higher header type. It is used by the PHP unpack() function.

Method summary

BMP_Loader($path = "")The construstor of the class. If the lenght of the $path argument is greater than zero, tries to open the file and read the bitmap data from it.
Load_BMP($path)Tries to open the file given with the $path argument and read the bitmap data from it.
Load_BMP_Data($data)Reads the bitmap data from direct input string.
Get_Image()Returns the whole image as a GD resource.

Static method summary

imagebmp($img, $dest)Writes the image behind the $img resource to a file. The path to the destination file is given by the $dest argument. Returns false on failure, and true when no errors detected.