ImageTaskBaseTLiquidResize Method

Resizes the current image to the given dimensions in content-aware manner (seam carving). 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: 6.2.0
C#
public T LiquidResize(
	int width,
	int height,
	ResizeMode resizeMode = ResizeMode.Max
)

Parameters

width  Int32
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  Int32
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  (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