Query: imagegrabwindow
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IMAGEGRABWINDOW(3) 1 IMAGEGRABWINDOW(3) imagegrabwindow - Captures a windowSYNOPSISresource imagegrabwindow (int $window_handle, [int $client_area])DESCRIPTIONGrabs a window or its client area using a windows handle (HWND property in COM instance)PARAMETERSo $window_handle - The HWND window ID. o $client_area - Include the client area of the application window.RETURN VALUESReturns an image resource identifier on success, FALSE on failure.ERRORS/EXCEPTIONS E_NOTICE is issued if $window_handle is invalid window handle. E_WARNING is issued if the Windows API is too old.EXAMPLESExample #1 imagegrabwindow(3) example Capture a window (IE for example) <?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $im = imagegrabwindow($handle); $browser->Quit(); imagepng($im, "iesnap.png"); imagedestroy($im); ?> Capture a window (IE for example) but with its content <?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $browser->Navigate("http://www.libgd.org"); /* Still working? */ while ($browser->Busy) { com_message_pump(4000); } $im = imagegrabwindow($handle, 0); $browser->Quit(); imagepng($im, "iesnap.png"); imagedestroy($im); ?>NOTESNote This function is only available on Windows.SEE ALSOimagegrabscreen(3). PHP Documentation Group IMAGEGRABWINDOW(3)
Related Man Pages |
---|
wwwbrowser(3pm) - debian |
tk_hwndtowindow(3tk) - opensolaris |
imagegrabwindow(3) - php |
imagesetbrush(3) - php |
pg_lo_read_all(3) - php |
Similar Topics in the Unix Linux Community |
---|
Text-based internet browser? |
Running .sh from PHP??? |
browser problem |
2-Disk X window embedded Linux November 1st 2008 (Soundproofing branch) |
Awk total and variance |