bx_image bx_load_image ( int  transp,
char  name[] 
)

Loads an image from a file (jpg, gif, png, ...)

Parameters:
transp whether the image is fully opaque (zero) or has some transparency information (non zero).
name the path and filename of the image
Returns:
the image along with its eventual transparency mask
Remarks:
  • on error (no memory available, file not found), the program simply exits!
  • half transparency (alpha channel) is not handled. A pixel is either fully opaque or fully transparent.


Generated on Fri Oct 10 00:01:00 2008 for bx-lib : the Basic X11 Library tuned for C beginners by  doxygen 1.5.6