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

TransformsProvider.Resize Method (Size, ResizeMode)

Resizes the image.

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

Syntax

Visual Basic
Public Sub Resize ( _
	size As Size, _
	resizeMode As ResizeMode _
)
C#
public void Resize(
	Size size,
	ResizeMode resizeMode
)

Parameters

size

Type: System.Drawing.Size

Dimensions of resized bitmap. If some of dimensions 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.

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 specified in the size argument.

See Also

Reference