HOw to use imagegrabscreen() in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
waseem83
Forum Commoner
Posts: 54
Joined: Tue Jun 23, 2009 3:51 am
Contact:

HOw to use imagegrabscreen() in PHP?

Post by waseem83 »

Can any body tell me how to use imagegrabscreen(); in pHP i have used this code,but its taking black image.
Code is
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");

Its creating myscreenshot.png but its all black.

Any body knows why this happens.?

Thanks in advance
Waseem
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: HOw to use imagegrabscreen() in PHP?

Post by requinix »

Did you read the user comments on the imagegrabscreen() manual page?
waseem83
Forum Commoner
Posts: 54
Joined: Tue Jun 23, 2009 3:51 am
Contact:

Re: HOw to use imagegrabscreen() in PHP?

Post by waseem83 »

Yes i read that but its still not working.
Post Reply