Re: Gtk2::Gdk::Drawable problem



I tried:
my $pixmap = Gtk2::Gdk::Pixmap->get_from_drawable($drawable,undef, 
0, 0,
0, 0, $width, $height);

but it doesn't work:
variable is not of type Gtk2::Gdk::Pixbuf

This doesn't answer your question, but may help ...

You can try the Data::Dumper module from CPAN, which is quite useful for peeking at the data types returned 
by the Gtk2 stuff.  It allows you to print returned references in a useful way 
(http://search.cpan.org/dist/Data-Dumper/Dumper.pm) ... which should show you what that particular API 
returns.    

Cheers,


--
Bruce Alderson <mx warpedvisions org>
http://warpedvisions.org






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