Re: Displaying a scaled pixmap



TheLonelyStar <nabble lonely-star org> writes:

> What I have not found out is how to scale the pixmap while drawing!
> Any hints?

Well, you can scale a pixbuf and convert that to a pixmap:

  http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGdk_1_1Pixbuf.html

Or you could use a canvas library, such as goocanvas or gnomecanvas,
instead of a DrawingArea.

-- 
Ole Laursen
http://people.iola.dk/olau/




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