Re: Grab a pixmap of a window




Daniel Kasak wrote:
Is there an easy way to grab a pixmap of an entire window's contents
( minus window manager decorations )? I know I can ask the window for
it's allocation details and grab a screenshot of the entire screen and
cut out the bit that I want. But is there a better way?

my $screenie = Gtk2::Gdk::Pixbuf->get_from_drawable ($toplevel->window);


-- 
muppet <scott at asofyet dot org>




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