C# 클래스 TrakHound.Tools.Image_Functions

파일 보기 프로젝트 열기: TrakHound/TrakHound-Community

공개 메소드들

메소드 설명
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