Table of Contents

Method GetCachedImage

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

GetCachedImage(IMaaImageBuffer)

Gets the cached screenshot image.

public bool GetCachedImage(IMaaImageBuffer image)

Parameters

image IMaaImageBuffer

An MaaFramework.Binding.Buffers.IMaaImageBuffer used to store the screenshot image.

Returns

bool

true if the screenshot is available; otherwise, false.

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

ArgumentNullException

GetCachedImage(MaaImageBuffer)

Gets the cached screenshot image.

public bool GetCachedImage(MaaImageBuffer image)

Parameters

image MaaImageBuffer

An MaaFramework.Binding.Buffers.IMaaImageBuffer used to store the screenshot image.

Returns

bool

true if the screenshot is available; otherwise, false.

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

ArgumentNullException