Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Display.SetParams

Switch to Manual
public void SetParams(int width, int height, int x, int y);

Parameters

width Change Window Width (Windows Only).
height Change Window Height (Windows Only).
x Change Window Position X (Windows Only).
y Change Window Position Y (Windows Only).

Description

This Windows only function can be used to set Size and Position of the Screen when Multi-Display is enabled.

To change the size and position of Primary Display you must also activate Primary display by calling : Display.displays[0].Activate(0, 0, 0);