Table of Contents

Method SetOption_ScreenshotResizeMethod

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.dll

SetOption_ScreenshotResizeMethod(IMaaOption<ControllerOption>?, int)

Set the interpolation method used when resizing screenshots.

public static bool SetOption_ScreenshotResizeMethod(this IMaaOption<ControllerOption>? opt, int value)

Parameters

opt IMaaOption<ControllerOption>?

The option.

value int

The value.

Returns

bool

true if the option was set successfully; otherwise, false.

Remarks

Value corresponds to cv::InterpolationFlags:

INTER_NEAREST=0, INTER_LINEAR=1, INTER_CUBIC=2, INTER_AREA=3, INTER_LANCZOS4=4

Default is INTER_AREA (3).

value: int, eg: 3; val_size: sizeof(int)

Exceptions

ArgumentNullException
NotSupportedException

The opt or value is not supported.