Logo Search packages:      
Sourcecode: adesklets version File versions

Imlib_Image imlib_load_image ( const char *  file  ) 

Parameters:
file Image file.
Returns:
An image handle.
Loads an image from disk located at the path specified by file. Please see the section How Image Loading Works for more detail. Returns an image handle on success or NULL on failure.

Definition at line 1663 of file imlib2.c.

{
   Imlib_Image         im = NULL;
   Imlib_Image         prev_ctxt_image;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER_RETURN("imlib_load_image", "file", file, NULL);
   prev_ctxt_image = ctx->image;
   im = __imlib_LoadImage(file, (ImlibProgressFunction) ctx->progress_func,
                          ctx->progress_granularity, 0, 0, NULL);
   ctx->image = prev_ctxt_image;
   return (Imlib_Image) im;
}


Generated by  Doxygen 1.6.0   Back to index