970_90

Tuesday, 2 October 2012

imagegrabwindow

resource imagegrabwindow ( int $window_handle [, int $client_area = 0 ] )

Captures a window

Grabs a window or its client area using a windows handle (HWND property in COM instance)


<?php
$browser 
= new COM("InternetExplorer.Application");
$handle $browser->HWND;
$browser->Visible true;
$im imagegrabwindow($handle);
$browser->Quit();
imagepng($im"iesnap.png");
imagedestroy($im);
?>


No comments:

Post a Comment