[no subject]



$pixbuf = Gtk::Gdk::Pixbuf->new_from_file($file);
$pixmap = new Gtk::Gdk::Pixmap($window, $width, $height);
$pixbuf->render_to_drawable($pixmap, $gc, 0, 0, 0, 0, $width, $height,
$dither, 0, 0);

But now I have a Gtk::Gdk::Pixmap but how do I convert it to a Gtk::Pixmap?
Also, how do I get a Gtk::Gdk::Window to use when creating the pixmap. And
where do I get the $gc (GraphicsContext) and $dither from?

I know I can use $pixbuf->render_pixmap_and_mask to simplify things but that
doesn't let me scale the image.


--
Jason Bodnar
jason shakabuku org
http://www.shakabuku.org




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