ImageUtils.AdjustImageToRatio

Adjusts an image to a specific aspect ratio by clipping from the center outward - essentially capturing the center to fit the width/height of the aspect ratio.

public static Bitmap AdjustImageToRatio(Byte[] imageContent,
	decimal ratio,
	int resizeWidth,
	int resizeHeight)

Parameters

imageContent

ratio

resizeWidth

resizeHeight

Overloads:


See also:

Class ImageUtils

© West Wind Technologies, 1996-2020 • Updated: 07/15/20
Comment or report problem with topic