Print Screen

rifter1818

Junior Contributor
Joined
Sep 11, 2003
Messages
255
Location
A cold dark place
I want to create a texture from the screen sortof like clicking print screen copies an image to the clip board only i want to make a texture of it to play with,.. any advice?
 
to send the printscreen key
Code:
SendKeys.SendWait("+{PRTSC}");

to retrieve a Bitmap from the clipboard, you can do this
Code:
Bitmap screen=(Bitmap)Clipboard.GetDataObject().GetData(typeof(Bitmap));

now all you need to do is put it together with the right error checking :)
 
k

Thank you very much :D from there i can easily make a texture from the bitmap and then add some hopefully cool effects. Thanks everyone for another job well done.
 
Back
Top