Table of Contents

Method GetResizedImage

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

GetResizedImage(int, int)

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

public ImageBuffer GetResizedImage(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