how to go from Pixbuf to pixmap
- From: Jonathan Gotti <jgotti mandrakesoft com>
- To: gtk-perl-list gnome org
- Subject: how to go from Pixbuf to pixmap
- Date: Tue, 03 Sep 2002 15:03:18 +0200
I'm trying to use the gdk-pixbuf for making preview of image files.
these is a sample of my code:
$pixbuf = new_from_file Gtk::Gdk::Pixbuf($img_file_path);
($pixmap, $mask) = $pixbuf->render_pixmap_and_mask($alpha_threshold);
$pm = new Gtk::Pixmap($pixmap,$mask);
But it doesn't work! :-/
I don't really understand what is $alpha_threshold how can i get it.
in my code it's equal to 0 and $mask is undef.
so $pm isn't a widget.
What i'm doing wrong ??
thanks and regards
Mandrake Linux release 9.0 (Cooker) for i586
] [Thread Prev