VgaGames4 - image man-pages

[.. upper level ..]

vg4->image->save()

Save image to file.

SYNTAX
VG_BOOL vg4->image->save(const struct VG_Image *imgp, const char *filename, VG_BOOL noalpha)

FUNCTION PARAMETERS
imgp Image
filename File to save to
noalpha If set to VG_TRUE, opaqueness will be discarded (set alpha to 255)

RETURN VALUE
Returns boolean: - VG_TRUE: OK - VG_FALSE: Error

DESCRIPTION
Save image to file. The image can be saved only to bitmap files .bmp or PNM (.ppm, .pgm, .pbm or .pam as RGB or RGB_ALPHA). When using PNM, opaqueness will be discarded (besides of PAM).