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
optIMaaOption<ControllerOption>?-
The option.
valueint-
The value.
Returns
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
optorvalueis not supported.