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, 2019 • Updated: 06/23/19
Comment or report problem with topic