C# 클래스 UCosmic.Web.Mvc.ImageResizer

파일 보기 프로젝트 열기: ucosmic/UCosmicAlpha

공개 메소드들

메소드 설명
ResizeImage ( this imageContent, ImageResizeRequestModel resizeParameters ) : Stream
ResizeImageConstrained ( this inSourceImage, int inDestCanvasWidth, int inDestCanvasHeight, ImageFormat inToFormat ) : MemoryStream

비공개 메소드들

메소드 설명
GetAspectRatio ( this size ) : double
GetMaxHeight ( this request, Size originalSize ) : double
GetMaxWidth ( this request, Size originalSize ) : double
GetQuality ( this request ) : ImageResizeQuality
GetTargetSize ( this request, Size originalSize ) : Size
ReduceByHeight ( this originalSize, double maxHeight ) : Size
ReduceByWidth ( this originalSize, double maxWidth ) : Size

메소드 상세

ResizeImage() 공개 정적인 메소드

public static ResizeImage ( this imageContent, ImageResizeRequestModel resizeParameters ) : Stream
imageContent this
resizeParameters UCosmic.Web.Mvc.Models.ImageResizeRequestModel
리턴 Stream

ResizeImageConstrained() 공개 정적인 메소드

public static ResizeImageConstrained ( this inSourceImage, int inDestCanvasWidth, int inDestCanvasHeight, ImageFormat inToFormat ) : MemoryStream
inSourceImage this
inDestCanvasWidth int
inDestCanvasHeight int
inToFormat System.Drawing.Imaging.ImageFormat
리턴 System.IO.MemoryStream