RAGE.Input.TakeScreenshot: Difference between revisions

From RAGE Multiplayer Wiki
(RAGE.Input.TakeScreenshot)
 
Line 28: Line 28:


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

Revision as of 13:57, 18 November 2021

Returns true if the key at passed virtual key code is pressed.

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