Click or drag to resize

IBitmapImageResize Method (Int32, Int32, ResizeInterpolation)

Resizes image to new width and height.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage Resize(
	int newWidth,
	int newHeight,
	ResizeInterpolation interpolation
)

Parameters

newWidth
Type: SystemInt32
New width.
newHeight
Type: SystemInt32
New height.
interpolation
Type: CohesiveComputing.ImagingResizeInterpolation
Interpolation type.

Return Value

Type: IBitmapImage
A new image instance with effect applied.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException newWidth or newHeight
InvalidOperationExceptionResulting image too large.
See Also