|width ||The width of the image. |
|height ||The height of the image. |
- A new blank image.
Creates a new blank image of size
. The contents of this image at creation time are undefined (they could be garbage memory). You are free to do whatever you like with this image. It is not cached. On success an image handle is returned - on failure NULL is returned.
Definition at line 2495 of file imlib2.c.
ctx = imlib_context_new();
if ((width <= 0) || (height <= 0))
data = malloc(width * height * sizeof(DATA32));
return (Imlib_Image) __imlib_CreateImage(width, height, data);