Resize.CalculateDimensions Method

Returns the dimensions of an image which will be produced by the Resize transform using the given destination size and resize mode.

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

Syntax

C#
public static Size CalculateDimensions(
	Size srcSize,
	Size dstSize,
	ResizeMode resizeMode
)

Parameters

srcSize

Type: System.Drawing.Size

The source size.
dstSize

Type: System.Drawing.Size

The destination size.
resizeMode

Type: Aurigma.GraphicsMill.Transforms.ResizeMode

A ResizeMode which specifies how to interpret the resize dimensions.

Return Value

The size of the resulting image.

Remarks

You can use this method to calculate the dimensions of an image which will be produced by the Resize transform.

See Also

Reference