Re: Grab a pixmap of a window
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: Grab a pixmap of a window
- Date: Thu, 7 Feb 2008 09:21:17 -0500 (EST)
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]