PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imagegrabwindow> <imagegif
Last updated: Fri, 10 Oct 2008

view this page in

imagegrabscreen

(PHP 5 >= 5.2.2)

imagegrabscreenCapture l'écran complet

Description

resource imagegrabscreen ( void )

Effectue une capture de la totalité de l'écran.

Valeurs de retour

Retourne une ressource image en cas de succès, ou FALSE si une erreur survient.

Exemples

Exemple #1 Exemple avec imagegrabscreen()

Cet exemple montre comment effectuer une capture d'écran et la sauvegarder dans une image png.

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

Notes

Note: Cette fonction n'est disponible que sous Windows.

Voir aussi



add a note add a note User Contributed Notes
imagegrabscreen
andrew at local dot co dot nz
19-Apr-2008 01:02
For this to work your Apache service must be set to 'Allow service to interact with desktop' otherwise you will just get a blank image. To fix this right-click My Computer, select Manage/Services and Applications/Services - find the apache service (like Apache2) and right-click, select Properties - choose the Log on tab and check the 'Allow service to interact with desktop' checkbox. Restart Apache.

imagegrabwindow> <imagegif
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites