SaveScreenShot (string filename)
Takes a screen capture and saves it to disk. The FILENAME must end in
either ".BMP" or ".PCX", as those are the types of files which can be saved.
Returns 1 if the shot was successfully saved, or 0 if an invalid file
extension was provided.
NOTE: The screenshot will be saved to the Saved Games folder.
NOTE: This command can be slow when using the Direct3D graphics driver.
Example:
String input = Game.InputBox("Type the filename:");
input = input.Append(".pcx");
SaveScreenShot(input);
will prompt the player for a filename and then save the screenshot with the filename the player typed.
See Also: DynamicSprite.SaveToFile
|