imagegrabwindow() - gd函数(图像处理)
imagegrabwindow()
(PHP 5 >= 5.2.2, PHP 7)
Captures a window
说明
imagegrabwindow(int $window_handle[,int $client_area= 0]): resourceGrabs a window or its client area using a windows handle(HWND property in COM instance)
Note:This function is only available on Windows.
参数
$window_handleThe HWND window ID.
$client_areaInclude the client area of the application window.
返回值
Returns an image resource identifier on success,FALSE
on failure.
错误/异常
E_NOTICE is issued if$window_handleis invalid window handle. E_WARNING is issued if the Windows API is too old.
范例
imagegrabwindow() example
Capture a window(IE for example)
Capture a window(IE for example)but with its content
参见
imagegrabscreen()
Captures the whole screen
If you just want to take a screenshot of a website WITHOUT the ugly IE window around it, the easiest way is setting the "Fullscreen" property to TRUE. $browser->Fullscreen = true; This is basically the same as pressing F11 once the browser is open, so you just get the actual website.
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!