Click or drag to resize
DisplayGetScreenSize Method
Get the size of a display based on the specified mode

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public static Size GetScreenSize(
	GameDisplayMode mode,
	bool scaled
)

Parameters

mode
Type: (Default Namespace)GameDisplayMode
Game display mode used for the display
scaled
Type: SystemBoolean
true to return the scaled size (multiplied by scaleFactor), false to return the native size

Return Value

Type: Size
Width and height in pixels
See Also