I Have a problem in imlib2.....!!!
- From: John Williams <itbeam yahoo com>
- To: gtk-list gnome org, gtk-app-devel-list-request gnome org
- Subject: I Have a problem in imlib2.....!!!
- Date: Tue, 18 Feb 2003 21:47:17 -0800 (PST)
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]