On Fri, 2002-08-02 at 06:38, simith nambiar wrote: > hi list, > iam struggling to get a GdkPixnmap object > which has a JPEG file in it to display on the drawing > area, If you do a quick browse of the API documentation, you'll find that gdk_pixbuf has the following function: gdk_pixbuf_render_to_drawable This function takes a GdkWindow *, which you can obtain from the GtkDrawable using the gtk_widget_get_window call or something similar. Then on the expose event for the GtkDrawable (remember to set the event mask, or you may miss this event), just do the gdk_pixbuf_render_to_drawable. > Please could anyone tell me how i should put it on the > drawing area in the > expose event > like we put a RGB data as: > > draw_rgb_image(...) > > but what abt the GdkPixmap > > pleas help ! > is there a way to convert the GdkPixbuf into raw RGB > data? No need to do this, although I'm sure the API docs will shed light on it. Check them out. Michael > so that i can convert it and use the same > draw_rgb_image(..) > > any links. > > thanx in advance, > Regards, > Simith > > > ===== > <P><A href="http://www.mcamit.8k.com">http://www.mcamit.8k.com</A> > <P><A href="http://www.dblocks.8k.com">http://www.dblocks.8k.com</A> </P> > > ________________________________________________________________________ > Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!! > visit http://in.autos.yahoo.com > _______________________________________________ > gtk-list mailing list > gtk-list gnome org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Public key available from http://students.cs.byu.edu/~torriem
Attachment:
signature.asc
Description: This is a digitally signed message part