Table of Contents

Method GetResolution

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

GetResolution(out int, out int)

Gets the raw (unscaled) device resolution.

bool GetResolution(out int width, out int height)

Parameters

width int

The raw width.

height int

The raw height.

Returns

bool

true if the resolution is available; otherwise, false (e.g., not connected or no screenshot taken yet).

Remarks

This returns the actual device screen resolution before any scaling.

The screenshot obtained via MaaFramework.Binding.IMaaController.GetCachedImage(MaaFramework.Binding.Buffers.IMaaImageBuffer) is scaled according to the screenshot target size settings, so its dimensions may differ from this raw resolution.