Table of Contents

ImageTaskBase<T>.Resize Method

Definition

Namespace
GleamTech.ImageUltimate
Assembly
GleamTech.ImageUltimate.dll

Resizes the current image to the given dimensions. The command is added to the chain and not executed until the actual processing is done.

public T Resize(int width, int height, ResizeMode resizeMode = ResizeMode.Max)

Parameters

width int

The desired width of the resulting image. If value is 0, width will be automatically calculated to preserve aspect ratio. Value will be treated as percentage when Percentage is used.

height int

The desired height of the resulting image. If value is 0, height will be automatically calculated to preserve aspect ratio. Value will be treated as percentage when Percentage is used.

resizeMode ResizeMode

The resize mode which is used to determine the resulting width and height and resolve aspect ratio differences.

Returns

T

The same instance of this class.