Re: [gtk-list] Re: gtk_image




Jeff <schizm@pc-4374.bc.rogers.wave.ca> writes:

> Rob Browning <rlb@cs.utexas.edu> writes:
> > http://www.misc.cornell.edu/~otaylor/gsumi/gsumi.html
> 
> you sure about that URL?  www.misc.cornell.edu doesn't exist :/

 http://www.msc.cornell.edu/~otaylor/gsumi/gsumi.html
            ^^^

But it's another program that uses gdk_images directly instead of
using gtk_image ... 

Most of the "hard" stuff is the same though. To use a gtk_image 
you: (without trying any of this out)

 * create a GdkImage
 * call gtk_image_new (image, NULL) 
      [ or (image,mask) if you have a mask ]
      [ or, if you need to switch images, uses gtk_image_set ] 
 * do gdk_image stuff.
 * call gdk_widget_draw (widget,rectangle) when you need to redraw
      some changed portion. (rectange == NULL => all)

Hope this helps (I'm sure Rob's eventual tutorial will be better),

                                        Owen



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