C# Класс ImageManager.ResizeUtility

Показать файл Открыть проект

Открытые методы

Метод Описание
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