Hi, Yes, I need to use gdk_pixbuf_xlib, we are developing a product in which we are using XLib and OGL for graphics. I can not change the X drawable to GDK drawable as it will result in lot of code changes and will affect other subsystems. So I thought of using the gdk_pixbuf_xlib library to get the image from X drawable and save it in pixbuf What I have to implement is snapshot. We show real time images on the screen and at some point user may want to save the snapshot. Later when he reloads, he should be able to resize the window which should rescale the image to new window size Since I did not find any rescaling functionality supported by X library, I thought of using these libraries. What do you think I should do? How can I link the libgdk_pixbuf_xlib-2.0 ?
Regards, anita --- Sven Neumann <[EMAIL PROTECTED]> wrote: > Hi, > > anita setty <[EMAIL PROTECTED]> writes: > > > I need to use gdk_pixbuf_xlib_get_from_drawable() > > function to get the image from X drawable and > store in > > pixbuf, so that i can later resize and rescale the > > image. > > To use gdk_pixbuf_xlib, I think we need to first > > initialise with gdk_pixbuf_xlib_init() function > > are you sure you need to use gdk_pixbuf_xlib > functions? > > libgdk_pixbuf_xlib-2.0 is an extra library that is > not linked in by > default. You only need it if you want to use > GdkPixbuf functionality > in an application that uses XLib and shouldn't use > it in a GTK+ > program. Just stay with the GDK abstraction and keep > away from using > XLib directly. Consider using > gdk_pixbuf_get_from_drawable() to get > the pixbuf from a GDK drawable. > > > Salut, Sven > _______________________________________________ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list ===== "Some cause happiness wherever they go; others whenever they go." __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
