Table of Contents

Method TryResize

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

TryResize(int, int)

Resizes the image.

public bool TryResize(int width, int height)

Parameters

width int

The target width.

height int

The target height.

Returns

bool

true if the image was resized successfully; otherwise, false.

TryResize(nint, int, int)

Resizes the image.

public static bool TryResize(nint handle, int width, int height)

Parameters

handle nint

The MaaImageBufferHandle.

width int

The target width.

height int

The target height.

Returns

bool

true if the image was resized successfully; otherwise, false.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaBuffer.MaaImageBufferResize(System.IntPtr,System.Int32,System.Int32).