RAGE.Input.TakeScreenshot: Difference between revisions

From RAGE Multiplayer Wiki
(RAGE.Input.TakeScreenshot)
 
(copy+paste)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Returns true if the key at passed virtual key code is pressed.
Takes screenshot of game screen and puts at /screenshots/ip_port folder.


==Syntax==
==Syntax==
Line 28: Line 28:


==See also==
==See also==
{{Keys_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]

Latest revision as of 14:03, 18 November 2021

Takes screenshot of game screen and puts at /screenshots/ip_port folder.

Syntax

RAGE.Input.TakeScreenshot(name, type, quality, compQuality);

Required Arguments

  • name: String
  • type: Type of screenshot (0 - JPG, 1 - PNG, 2 - BMP)
  • quality: Quality (0 - 100)
  • compressionQuality: Compression quality (0 - 100)

Example

C# Syntax

Parameters

  • name: String
  • type: Type of screenshot (0 - JPG, 1 - PNG, 2 - BMP)
  • quality: String
  • compressionQuality: Compression quality (0 - 100)

Example

public void takeScreen()
{
    RAGE.Input.TakeScreenshot("ragemp.png", 1, 100, 0);
}


See also