Logo Search packages:      
Sourcecode: adesklets version File versions

Imlib_Image imlib_load_image_immediately ( const char *  file  ) 

Parameters:
file Image file.
Returns:
An image handle.
Loads an image from disk located at the path specified by file. This forces the image data to be decoded at load time too, instead of decoding being deferred until it is needed. Returns an image handle on success or NULL on failure.

Definition at line 1688 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_immediately", "file", file,
                              NULL);
   prev_ctxt_image = ctx->image;
   im = __imlib_LoadImage(file, (ImlibProgressFunction) ctx->progress_func,
                          ctx->progress_granularity, 1, 0, NULL);
   ctx->image = prev_ctxt_image;
   return (Imlib_Image) im;
}


Generated by  Doxygen 1.6.0   Back to index