C# Class GR.Imaging.BitmapAnalyzer

Mostra file Open project: alexhanh/Botting-Library Class Usage Examples

Public Methods

Method 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 method

public static AbsoluteDiff ( Color c1, Color c2 ) : int
c1 Color
c2 Color
return int

AbsoluteDiff() public static method

public static AbsoluteDiff ( FastBitmap bmp1, FastBitmap bmp2 ) : int
bmp1 FastBitmap
bmp2 FastBitmap
return int

AbsoluteDiff() public static method

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

BoundingBitmap() public static method

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

BoundingRectangle() public static method

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

CenterOfIntensity() public static method

public static CenterOfIntensity ( FastBitmap bitmap ) : Point
bitmap FastBitmap
return Point

CropBitmap() public static method

public static CropBitmap ( Bitmap bitmap, Rectangle crop_area ) : Bitmap
bitmap System.Drawing.Bitmap
crop_area System.Drawing.Rectangle
return System.Drawing.Bitmap

CropImage() public static method

public static CropImage ( Image image, Rectangle crop_area ) : Image
image Image
crop_area System.Drawing.Rectangle
return Image

FindLeastSimilarPixel() public static method

public static FindLeastSimilarPixel ( List bitmaps, Point &point ) : List
bitmaps List
point Point
return List

GenerateTransitions() public static method

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
return List

IsEqual() public static method

public static IsEqual ( Color c1, Color c2, int diff ) : bool
c1 Color
c2 Color
diff int
return bool

PositionOf() public static method

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

PositionOf() public static method

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
return Point

PositionOf() public static method

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

PositionOf() public static method

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

RemoveDuplicates() public static method

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

SliceBitmap() public static method

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

SliceImage() public static method

public static SliceImage ( Image image, int vertical_slices, int horizontal_slices ) : List
image Image
vertical_slices int
horizontal_slices int
return List