in reply to Win32::GuiTest - Processing screen captures in memory?
Rather than saving it to a file, copy it to the clipboard and then retrieve it from there using Win32::ClipBoard:
sub grabWindowRegion { my $cb = new Win32::ClipBoard; my $ds = new Win32::GuiTest::DibSect; $ds->CopyClient(shift,[@_]); $ds->ToClipboard(); my $image = Win32::Clipboard::GetBitmap(); return parseBMP( $image ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::GuiTest - Processing screen captures in memory?
by SuicideJunkie (Vicar) on Mar 19, 2011 at 23:38 UTC | |
by BrowserUk (Patriarch) on Mar 20, 2011 at 00:18 UTC | |
by SuicideJunkie (Vicar) on Mar 20, 2011 at 05:26 UTC | |
by BrowserUk (Patriarch) on Mar 20, 2011 at 06:05 UTC | |
by SuicideJunkie (Vicar) on Mar 20, 2011 at 14:53 UTC | |
| |
by Anonymous Monk on Mar 19, 2011 at 23:52 UTC |