|gdImagePtr gdImageCreateFromWBMP(||FILE ||*||inFile||)|
gdImageCreateFromWBMP is called to load images from WBMP format files. Invoke gdImageCreateFromWBMP with an already opened pointer to a file containing the desired image. gdImageCreateFromWBMP returns a gdImagePtr to the new image, or NULL if unable to load the image (most often because the file is corrupt or does not contain a WBMP image). gdImageCreateFromWBMP does not close the file. You can inspect the sx and sy members of the image to determine its size. The image must eventually be destroyed using gdImageDestroy.
gdImageCreateFromWBMPPtr creates an image from WBMP data (i.e. the contents of a WBMP file) already in memory.
gdImageCreateFromWBMPCtx reads in an image using the functions in a gdIOCtx struct.
|infile||The input FILE pointer|
A pointer to the new image or NULL if an error occurred.
in = fopen("mywbmp.wbmp", "rb");
im = gdImageCreateFromWBMP(in);
// ... Use the image ...