vg4->image->load()
Load image from file.
SYNTAX
struct VG_Image *
vg4->image->load(const char *filename)
FUNCTION PARAMETERS
filename | File to load |
RETURN VALUE
Returns loaded image
or NULL = Error
DESCRIPTION
Load image from file.
Only bitmap files .bmp or PNM (.ppm, .pgm, .pbm or .pam as RGB or RGB_ALPHA)
can be loaded.
If an image is loaded twice or more,
the data is internally loaded just one time,
whereat the reference-counter is incremented to save memory.
SEE ALSO