C# Class GR.Imaging.BitmapAnalyzer

Afficher le fichier Open project: alexhanh/Botting-Library Class Usage Examples

Méthodes publiques

Méthode Description
AbsoluteDiff ( Color c1, Color c2 ) : int
AbsoluteDiff ( FastBitmap bmp1, FastBitmap bmp2 ) : int
AbsoluteDiff ( FastBitmap bmp1, FastBitmap bmp2, Rectangle sub_rect ) : int
BoundingBitmap ( Bitmap bmp, int bound_color, Rectangle &crop_rect ) : Bitmap
BoundingRectangle ( Bitmap bmp, Rectangle bounds, int bound_color ) : Rectangle
CenterOfIntensity ( FastBitmap bitmap ) : Point
CropBitmap ( Bitmap bitmap, Rectangle crop_area ) : Bitmap
CropImage ( Image image, Rectangle crop_area ) : Image
FindLeastSimilarPixel ( List bitmaps, Point &point ) : List
GenerateTransitions ( FastBitmap number, int left, int right ) : List

Generates transition images of #left and #right pixels to left and right respectfully.

IsEqual ( Color c1, Color c2, int diff ) : bool
PositionOf ( FastBitmap bmp, Color color ) : Point

Finds the first occurence of color and returns its position.

PositionOf ( FastBitmap bmp, ColorRange range ) : Point

Finds the first occurence of any color in given range and returns its position.

PositionOf ( FastBitmap bmp, ColorRange range, Rectangle subRect ) : Point
PositionOf ( FastBitmap bmp, Point start, ColorRange range, Rectangle subRect ) : Point
RemoveDuplicates ( IEnumerable bitmaps ) : List

Removes duplicate bitmaps from an enumerable FastBitmap collection and returns the resulting unique bitmap collection.

SliceBitmap ( Bitmap image, int vertical_slices, int horizontal_slices ) : List
SliceImage ( Image image, int vertical_slices, int horizontal_slices ) : List

Method Details

AbsoluteDiff() public static méthode

public static AbsoluteDiff ( Color c1, Color c2 ) : int
c1 Color
c2 Color
Résultat int

AbsoluteDiff() public static méthode

public static AbsoluteDiff ( FastBitmap bmp1, FastBitmap bmp2 ) : int
bmp1 FastBitmap
bmp2 FastBitmap
Résultat int

AbsoluteDiff() public static méthode

public static AbsoluteDiff ( FastBitmap bmp1, FastBitmap bmp2, Rectangle sub_rect ) : int
bmp1 FastBitmap
bmp2 FastBitmap
sub_rect System.Drawing.Rectangle
Résultat int

BoundingBitmap() public static méthode

public static BoundingBitmap ( Bitmap bmp, int bound_color, Rectangle &crop_rect ) : Bitmap
bmp System.Drawing.Bitmap
bound_color int
crop_rect System.Drawing.Rectangle
Résultat System.Drawing.Bitmap

BoundingRectangle() public static méthode

public static BoundingRectangle ( Bitmap bmp, Rectangle bounds, int bound_color ) : Rectangle
bmp System.Drawing.Bitmap
bounds System.Drawing.Rectangle
bound_color int
Résultat System.Drawing.Rectangle

CenterOfIntensity() public static méthode

public static CenterOfIntensity ( FastBitmap bitmap ) : Point
bitmap FastBitmap
Résultat Point

CropBitmap() public static méthode

public static CropBitmap ( Bitmap bitmap, Rectangle crop_area ) : Bitmap
bitmap System.Drawing.Bitmap
crop_area System.Drawing.Rectangle
Résultat System.Drawing.Bitmap

CropImage() public static méthode

public static CropImage ( Image image, Rectangle crop_area ) : Image
image Image
crop_area System.Drawing.Rectangle
Résultat Image

FindLeastSimilarPixel() public static méthode

public static FindLeastSimilarPixel ( List bitmaps, Point &point ) : List
bitmaps List
point Point
Résultat List

GenerateTransitions() public static méthode

Generates transition images of #left and #right pixels to left and right respectfully.
public static GenerateTransitions ( FastBitmap number, int left, int right ) : List
number FastBitmap
left int
right int
Résultat List

IsEqual() public static méthode

public static IsEqual ( Color c1, Color c2, int diff ) : bool
c1 Color
c2 Color
diff int
Résultat bool

PositionOf() public static méthode

Finds the first occurence of color and returns its position.
public static PositionOf ( FastBitmap bmp, Color color ) : Point
bmp FastBitmap
color Color
Résultat Point

PositionOf() public static méthode

Finds the first occurence of any color in given range and returns its position.
public static PositionOf ( FastBitmap bmp, ColorRange range ) : Point
bmp FastBitmap
range ColorRange
Résultat Point

PositionOf() public static méthode

public static PositionOf ( FastBitmap bmp, ColorRange range, Rectangle subRect ) : Point
bmp FastBitmap
range ColorRange
subRect System.Drawing.Rectangle
Résultat Point

PositionOf() public static méthode

public static PositionOf ( FastBitmap bmp, Point start, ColorRange range, Rectangle subRect ) : Point
bmp FastBitmap
start Point
range ColorRange
subRect System.Drawing.Rectangle
Résultat Point

RemoveDuplicates() public static méthode

Removes duplicate bitmaps from an enumerable FastBitmap collection and returns the resulting unique bitmap collection.
public static RemoveDuplicates ( IEnumerable bitmaps ) : List
bitmaps IEnumerable
Résultat List

SliceBitmap() public static méthode

public static SliceBitmap ( Bitmap image, int vertical_slices, int horizontal_slices ) : List
image System.Drawing.Bitmap
vertical_slices int
horizontal_slices int
Résultat List

SliceImage() public static méthode

public static SliceImage ( Image image, int vertical_slices, int horizontal_slices ) : List
image Image
vertical_slices int
horizontal_slices int
Résultat List