Discussions
Sign In
Forum rules
- please read before posting.
Take Screenshot button
brentk
March 2016
in
Engine development
Is it possible to create a button in game to allow players to take screenshots?
I figured there might be a way to hack how screenshots are taken for saved games but couldn't quite wrap my head around it.
Cheers!
Comments
D12Duke
March 2016
..apparently I can't respond with copy/pasted text?
D12Duke
March 2016
SImple C# script bud (Figured I'd respond since no one else has :P)
ScreenCapture sc = new ScreenCapture(); //name of your thingamajob (function)
Image img = sc.CaptureScreen(); // the thing the thingamajob is going (calling the function)
this.imageDisplay.Image = img; //the shit it just did
sc.CaptureWindowToFile(this.Handle,"C:\\temp2.gif",ImageFormat.Gif); //write the shit it just did to a file path
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12.5K
All Categories
66
Official news
1.5K
Engine development
10.5K
Technical Q&A
337
Games showcase
150
Extending the editor
229
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments