Method GetCachedImage
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
GetCachedImage(IMaaImageBuffer)
Gets the cached screenshot image.
public bool GetCachedImage(IMaaImageBuffer image)Parameters
imageIMaaImageBuffer-
An MaaFramework.Binding.Buffers.IMaaImageBuffer used to store the screenshot image.
Returns
Remarks
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.
Use MaaFramework.Binding.IMaaController.GetResolution(System.Int32@,System.Int32@) to get the raw (unscaled) device resolution.
Exceptions
GetCachedImage(MaaImageBuffer)
Gets the cached screenshot image.
public bool GetCachedImage(MaaImageBuffer image)Parameters
imageMaaImageBuffer-
An MaaFramework.Binding.Buffers.IMaaImageBuffer used to store the screenshot image.
Returns
Remarks
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.
Use MaaFramework.Binding.IMaaController.GetResolution(System.Int32@,System.Int32@) to get the raw (unscaled) device resolution.