VgaGames 3 - Video man-pages

[.. upper level ..]

VG3_image_create()

Create an empty image.
SYNTAX
struct vg3_image * VG3_image_create(struct vg3_window *wstruct, int width, int height)

FUNCTION PARAMETERS
wstruct Window-struct
width Width of image in pixels
height Height of image in pixels

RETURN VALUE
Returns a pointer to the created image or NULL on failure.

ERRORS
On error VG3_errmsg() returns: EINVAL - error in argument ENOSYS - cannot create image ENOMEM - cannot get memory

DESCRIPTION
Create a new emtpy image and return pointer to it.

SEE ALSO
VG3_image_text() VG3_image_clone() VG3_image_clone_reference() VG3_image_load()