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

Resize.CalculateProportionalDimensions Method

Calculates parameters for resize which preserve specified aspect ratio.

Overload List

Name Description
Public method Static member CalculateProportionalDimensions(Bitmap, Int32, Int32, ResizeMode)

Calculates parameters for resize which preserve aspect ratio of the specified bitmap.

Public method Static member CalculateProportionalDimensions(Int32, Int32, Int32, Int32, ResizeMode)

Calculates parameters for resize which preserve the aspect ratio of specified dimensions.

Remarks

Use this method if you need to get the exact dimensions of the bitmap after proportional resize.

See Also

Reference