rifter1818 Posted March 1, 2004 Posted March 1, 2004 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? Quote
Menge Posted March 2, 2004 Posted March 2, 2004 hrm... you could both use the BitBlt API function OR simply send the PrintScreen key through code and grab the bitmap from the clipboard :) Quote Menge
rifter1818 Posted March 2, 2004 Author Posted March 2, 2004 Could you include a code example please Visual basic preferably but anything will do Quote
Menge Posted March 2, 2004 Posted March 2, 2004 then one (kind of dirty way) to do it is send the printscreen key and afterwards copy the screenshot from the clipboard. Quote Menge
rifter1818 Posted March 2, 2004 Author Posted March 2, 2004 Code Example PLEASE. How do i a) send the print key from code and b) copy the image from the clip board in code Quote
Menge Posted March 2, 2004 Posted March 2, 2004 to send the printscreen key SendKeys.SendWait("+{PRTSC}"); to retrieve a Bitmap from the clipboard, you can do this Bitmap screen=(Bitmap)Clipboard.GetDataObject().GetData(typeof(Bitmap)); now all you need to do is put it together with the right error checking :) Quote Menge
rifter1818 Posted March 2, 2004 Author Posted March 2, 2004 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.