位置: 编程技术 - 正文
推荐整理分享PHP:imagegrabwindow()的用法_GD库图像处理函数,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 5 >= 5.2.2)
imagegrabwindow — Captures a window
说明 resource imagegrabwindow ( int $window_handle [, int $client_area = 0 ] )Grabs a window or its client area using a windows handle (HWND property in COM instance)
参数window_handle
The 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_handle is invalid window handle. E_WARNING is issued if the Windows API is too old.
范例
Example #1 imagegrabwindow() example
Capture a window (IE for example)
<?php$browser=newCOM("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=newCOM("InternetExplorer.Application");$handle=$browser->HWND;$browser->Visible=true;$browser->Navigate(" 注释Note:
This function is only available on Windows.
参见imagegrabscreen() - Captures the whole screen
PHP:imagegrabscreen()的用法_GD库图像处理函数 imagegrabscreen(PHP5=5.2.2)imagegrabscreenCapturesthewholescreen说明resourceimagegrabscreen(void)Grabsascreenshotofthewholescreen.返回值Returnsanimageresourceidentifieronsuccess,FALSEonfailure.
PHP:imagegd()的用法_GD库图像处理函数 imagegd(PHP4=4.0.7,PHP5)imagegd将GD图像输出到浏览器或文件说明boolimagegd(resource$image[,string$filename])imagegd()将一个GD图像输出到filename。image参数是由imagecreatetrueco
PHP:imagegd2()的用法_GD库图像处理函数 imagegd2(PHP4=4.0.7,PHP5)imagegd2将GD2图像输出到浏览器或文件说明boolimagegd2(resource$image[,string$filename[,int$chunk_size[,int$type=IMG_GD2_RAW]]])imagegd2()将一个GD图像输出到
标签: PHP:imagegrabwindow()的用法_GD库图像处理函数
本文链接地址:https://www.jiuchutong.com/biancheng/288336.html 转载请保留说明!友情链接: 武汉网站建设