Re: Missing gdk_draw_pixbuf()




Michael Rothwell wrote:
According to the docs:

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-threshold-alpha

gdk_pixbuf_render_to_drawable_alpha () is obsolete. The docs say, "This function is obsolete. Use gdk_draw_pixbuf() instead."

gdk_draw_pixbuf() doesn't seem to exist...



Follow-up:

mask = gdk_pixmap_new(widget->window,childMapSize.X,childMapSize.Y,1);
                                
                                gdk_pixbuf_render_to_drawable_alpha(pixbuf,mask,
              0,0,0,0,childMapSize.X,childMapSize.Y,
              GDK_PIXBUF_ALPHA_BILEVEL,
              1,GDK_RGB_DITHER_NORMAL,0,0);

Gdk-WARNING **: The gdk_draw_*_image require the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

... I created the pixmap with a non-NULL window argument (inside an expose handler). Yet...


--
Michael Rothwell
e: rothwell at holly-springs.nc.us
k: http://www.rothwells.info/rothwell-public-key.txt





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