Forum und email

imagegrabscreen

(PHP 5 >= 5.2.2)

imagegrabscreen — 画面全体をキャプチャする

説明

resource imagegrabscreen ( void )

画面全体のスクリーンショットを取得します。

返り値

成功した場合に画像リソースの ID、失敗した場合に FALSE を返します。

Example#1 imagegrabscreen() の例

この例は、現在の画面の状態のスクリーンショットを取得してそれを png 画像として保存するものです。

<?php
$im 
imagegrabscreen();
imagepng($im"myscreenshot.png");
?>

注意

注意: この関数は Windows 上でしか使用できません。