ImageTaskBaseTResizeHeight Method

Resizes the current image to the given height while preserving the aspect ratio. This is a shortcut to calling Resize(Int32, Int32, ResizeMode) method with 0 for width value. The command is added to the chain and not executed until the actual processing is done.

Definition

Namespace: GleamTech.ImageUltimate
Assembly: GleamTech.ImageUltimate (in GleamTech.ImageUltimate.dll) Version: 5.8.8
C#
public T ResizeHeight(
	int height,
	ResizeMode resizeMode = ResizeMode.Max
)

Parameters

height  Int32
The desired height of the resulting image. Width will be automatically calculated to preserve aspect ratio. Value will be treated as percentage when Percentage is used.
resizeMode  ResizeMode  (Optional)
The resize mode which is used to determine the resulting width and height and resolve aspect ratio differences.

Return Value

T
The same instance of this class.

See Also