Table of Contents

Method Resize

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

Resize(int, int)

Resizes the image to the specified dimensions, without preserving the aspect ratio.

public ImageBuffer Resize(int targetWidth, int targetHeight)

Parameters

targetWidth int

The desired width in pixels.

targetHeight int

The desired height in pixels.

Returns

ImageBuffer

A new ImageBuffer containing the resized image.

Exceptions

InvalidOperationException

Thrown if the image resizing operation fails.

InvalidOperationException