This documentation is for the old version. Go to the latest Graphics Mill docs

TransformsProvider.Resize Method (Int32, Int32, ResizeMode, InterpolationMode)

Resizes the image.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub Resize ( _
	width As Integer, _
	height As Integer, _
	resizeMode As ResizeMode, _
	interpolationMode As InterpolationMode _
)
C#
public void Resize(
	int width,
	int height,
	ResizeMode resizeMode,
	InterpolationMode interpolationMode
)

Parameters

width

Type: System.Int32

A width of resize transform. If it equals to 0, it is calculated automatically to preserve the aspect ratio of the source image. Both width and height cannot be 0 at the same time.
height

Type: System.Int32

A height of resize transform. If it equals to 0, it is calculated automatically to preserve the aspect ratio of the source image. Both width and height cannot be 0 at the same time.
resizeMode

Type: Aurigma.GraphicsMill.Transforms.ResizeMode

A member of the ResizeMode enumeration which specifies how to interpret the resize dimensions.
interpolationMode

Type: Aurigma.GraphicsMill.Transforms.InterpolationMode

A member of the InterpolationMode enumeration which specifies an interpolation algorithm which used during the resize.

Remarks

You can also use Resize class to apply this transform.

Note

If certain values of resizeMode are specified, width and height of the result bitmap may be different than width and height arguments.

See Also

Reference