Page 1 of 1

HOw to use imagegrabscreen() in PHP?

Posted: Tue Jan 12, 2010 12:56 am
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

Re: HOw to use imagegrabscreen() in PHP?

Posted: Tue Jan 12, 2010 2:25 am
by requinix
Did you read the user comments on the imagegrabscreen() manual page?

Re: HOw to use imagegrabscreen() in PHP?

Posted: Fri Jan 15, 2010 12:30 am
by waseem83
Yes i read that but its still not working.