I Have a problem in imlib2.....!!!



Hi,
I have a problem in imlib2...
i could load an image by gtk........like below..
======================================================
GtkWidget *get_image(char* image_file)
{
   GtkWidget *image;
   GdkImlibImage *im; 
   GdkPixmap *p;
   GdkBitmap *m;
   gint w;
   gint h;

   im=gdk_imlib_load_image(image_file);
   w=im->rgb_width;h=im->rgb_height;

   gdk_imlib_render(im,w,h);
   p=gdk_imlib_move_image(im);
   m=gdk_imlib_move_mask(im);
   image=gtk_pixmap_new(p,m);
   gtk_widget_show(image);
   
    gtk_statusbar_push( GTK_STATUSBAR(status_bar),
context_id,image_file);
     
   return image;
}
=======================================================
But how can i do the same through imlib2..??
Or how can i pass this data to imlib2....??

And other problem...
I want to diplay a "Splash Screen" when i run my GTK 
program...any ideas???

Thank you!


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]