You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en_us/2.2-IntegratedInterfaceOverview.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -416,6 +416,11 @@ Asynchronously scroll. This is an asynchronous operation that immediately return
416
416
417
417
Asynchronously screenshot. This is an asynchronous operation that immediately returns an operation id. You can query the status via `MaaControllerStatus` and `MaaControllerWait`, and get the screenshot via `MaaControllerCachedImage`.
418
418
419
+
> [!NOTE]
420
+
>
421
+
> The screenshot is scaled according to the screenshot target size settings (long side / short side). The resulting image dimensions may differ from the raw device resolution.
422
+
> Use `MaaControllerGetResolution` to get the raw (unscaled) device resolution.
423
+
419
424
### MaaControllerPostShell
420
425
421
426
-`cmd`: Shell command to execute
@@ -446,6 +451,24 @@ Check if connected.
446
451
447
452
Get the latest screenshot, write to `buffer`.
448
453
454
+
> [!NOTE]
455
+
>
456
+
> The returned image is scaled according to the screenshot target size settings (long side / short side). The image dimensions may differ from the raw device resolution.
457
+
> Use `MaaControllerGetResolution` to get the raw (unscaled) device resolution.
458
+
459
+
### MaaControllerGetResolution
460
+
461
+
-`width [out]`: Output raw width
462
+
-`height [out]`: Output raw height
463
+
464
+
Get the raw (unscaled) device resolution.
465
+
466
+
> [!NOTE]
467
+
>
468
+
> This returns the actual device screen resolution before any scaling.
469
+
> The screenshot obtained via `MaaControllerCachedImage` is scaled according to the screenshot target size settings, so its dimensions may differ from this raw resolution.
470
+
> Valid values are only available after the first screenshot is taken.
0 commit comments