Logo Search packages:      
Sourcecode: adesklets version File versions

Imlib_Image imlib_create_image ( int  width,
int  height 

width The width of the image.
height The height of the image.
A new blank image.
Creates a new blank image of size width and height. 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.

   DATA32             *data;

   if (!ctx)
      ctx = imlib_context_new();
   if ((width <= 0) || (height <= 0))
      return NULL;
   data = malloc(width * height * sizeof(DATA32));
   if (data)
      return (Imlib_Image) __imlib_CreateImage(width, height, data);
   return NULL;

Generated by  Doxygen 1.6.0   Back to index