How to...save a screenshot to a file

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
The Green Body
Posts: 2
Joined: Thu Aug 23, 2007 11:33 am

How to...save a screenshot to a file

Post by The Green Body »

HI eveybody!
I'd like to save a screenshot (Environment.VideoDriver.CreateScreenShot()) to a file.

Image screenshot = Game.Environment.VideoDriver.CreateScreenShot();

--> what next?
I tried to seach the forum, but found no anwser.
Please help!
VinZ
Posts: 21
Joined: Sat Jul 29, 2006 11:16 am
Location: India

ScreenShot

Post by VinZ »

Hi,
Is that line executing, then fine add this line...

device.VideoDriver.WriteImageIntoFile(screenshot , "Img.jpg");

For me whan i execute,
IrrlichtNETCP.Image img = device.VideoDriver.CreateScreenShot();
its giving memory ref execp.
The Green Body
Posts: 2
Joined: Thu Aug 23, 2007 11:33 am

Post by The Green Body »

Wow,really it works!
Thanks, never thought that could be so easy :shock:

I guess it takes a while till I get used to all the
methods Irrlicht provides :)
Locked