C# 클래스 ImageManager.ResizeUtility

파일 보기 프로젝트 열기: cimex/ImageManager

공개 메소드들

메소드 설명
Get ( Image image, int maxSideSize ) : Bitmap
Get ( Image image, int maxWidth, int maxHeight ) : Bitmap
Get ( Image image, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor ) : Bitmap
GetAndCrop ( Image image, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio ) : Bitmap
GetScaleFactor ( Image image, float maxDimension ) : float

비공개 메소드들

메소드 설명
Crop ( Image image, int width, int height, AnchorPosition Anchor ) : Bitmap
GetColour ( string hexColour ) : Color
GetDestinationRectangle ( int width, int height, int sourceWidth, int sourceHeight ) : Rectangle
Scale ( Image sourcePhoto, int width, int height, string hexBackgroundColour ) : Bitmap

메소드 상세

Get() 공개 정적인 메소드

public static Get ( Image image, int maxSideSize ) : Bitmap
image Image
maxSideSize int
리턴 System.Drawing.Bitmap

Get() 공개 정적인 메소드

public static Get ( Image image, int maxWidth, int maxHeight ) : Bitmap
image Image
maxWidth int
maxHeight int
리턴 System.Drawing.Bitmap

Get() 공개 정적인 메소드

public static Get ( Image image, int width, int height, ImageMod imageMod, string hexBackgroundColour, AnchorPosition anchor ) : Bitmap
image Image
width int
height int
imageMod ImageMod
hexBackgroundColour string
anchor AnchorPosition
리턴 System.Drawing.Bitmap

GetAndCrop() 공개 정적인 메소드

public static GetAndCrop ( Image image, int targetWidth, int targetHeight, double widthRatio, double heightRatio, double leftRatio, double topRatio ) : Bitmap
image Image
targetWidth int
targetHeight int
widthRatio double
heightRatio double
leftRatio double
topRatio double
리턴 System.Drawing.Bitmap

GetScaleFactor() 공개 정적인 메소드

public static GetScaleFactor ( Image image, float maxDimension ) : float
image Image
maxDimension float
리턴 float