C# Class TrakHound.Tools.Image_Functions

Afficher le fichier Open project: TrakHound/TrakHound-Community

Méthodes publiques

Méthode Description
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

Method Details

CalculateAverageColor() public static méthode

public static CalculateAverageColor ( Bitmap bm ) : Color
bm System.Drawing.Bitmap
Résultat System.Drawing.Color

CropImage() public static méthode

Returns a cropped image based on the 'cropArea' set
public static CropImage ( Image img, Rectangle cropArea ) : Image
img Image
cropArea System.Drawing.Rectangle
Résultat Image

CropImageToCenter() public static méthode

Returns a Image that is automatically cropped to the center of the image
public static CropImageToCenter ( Image img ) : Image
img Image
Résultat Image

GetImageFromFile() public static méthode

public static GetImageFromFile ( string path ) : Image
path string
Résultat Image

ImageFromFile() public static méthode

public static ImageFromFile ( Uri uri ) : Image
uri System.Uri
Résultat Image

SetImageSize() public static méthode

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
Résultat Image