C# Класс TrakHound.Tools.Image_Functions

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

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

Метод Описание
CalculateAverageColor ( Bitmap bm ) : Color
CropImage ( Image img, Rectangle cropArea ) : Image

Returns a cropped image based on the 'cropArea' set

CropImageToCenter ( Image img ) : Image

Returns a Image that is automatically cropped to the center of the image

GetImageFromFile ( string path ) : Image
ImageFromFile ( Uri uri ) : Image
SetImageSize ( Image image, int width, int height ) : Image

Returns a resized image based on the Width and Height given

Описание методов

CalculateAverageColor() публичный статический Метод

public static CalculateAverageColor ( Bitmap bm ) : Color
bm System.Drawing.Bitmap
Результат System.Drawing.Color

CropImage() публичный статический Метод

Returns a cropped image based on the 'cropArea' set
public static CropImage ( Image img, Rectangle cropArea ) : Image
img Image
cropArea System.Drawing.Rectangle
Результат Image

CropImageToCenter() публичный статический Метод

Returns a Image that is automatically cropped to the center of the image
public static CropImageToCenter ( Image img ) : Image
img Image
Результат Image

GetImageFromFile() публичный статический Метод

public static GetImageFromFile ( string path ) : Image
path string
Результат Image

ImageFromFile() публичный статический Метод

public static ImageFromFile ( Uri uri ) : Image
uri System.Uri
Результат Image

SetImageSize() публичный статический Метод

Returns a resized image based on the Width and Height given
public static SetImageSize ( Image image, int width, int height ) : Image
image Image
width int
height int
Результат Image