Re: gdk-pixbuf in gdkmm?



Murray Cumming wrote:
Is there a gdkmm or C++ equivalent to the gdk-pixbuf functions here:

http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-file-loading.html#gdk-pixbuf-new-from-file-at-size


We have Gdk::Pixbuf::create_from_file():
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGdk_1_1Pixbuf.html#e4

If you need the size paramters, and you can't find them in the API, then
please file a bug.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



Well I asked on the librsvg-devel list about their API and the response I got was basically the gdk-pixbuf size functions made it kind of obsolete. From what is in its (librsvg) core API I couldn't figure out exactly how to scale an image from a file.

Is there an existing way to do this?




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