C# Class GR.Imaging.FastBitmap

Inheritance: IDisposable
显示文件 Open project: alexhanh/Botting-Library Class Usage Examples

Public Methods

Method Description
BlitSingleColor ( FastBitmap bitmap, Point location, int test_color, int blit_color ) : void
Dispose ( ) : void

Call, when you no longer need this fast bitmap nor the bitmap locked with this instance.

FastBitmap ( Bitmap subject_bitmap ) : System
GetColor ( Point point ) : Color
GetColor ( int x, int y ) : Color
GetPixel ( Point point ) : int
GetPixel ( int x, int y ) : int
IsIn ( FastBitmap fast_bitmap, Point basepoint ) : bool

Does an exact match of this bitmap in fast_bitmap in basepoint.

IsIn ( FastBitmap fast_bitmap, Point basepoint, int tolerance ) : bool

Matches until difference is more than total tolerance.

IsIn ( IEnumerable bmps ) : bool

Tests whether this bitmap exists in the collection.

IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2 ) : bool

Returns whether these two fast bitmaps match in width, height and pixel data.

IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2, Rectangle sub_rect ) : bool

Returns whether these two fast bitmaps match in width, height and pixel data within the given sub rectangle.

IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2, int total_tolerance ) : bool
LockBitmap ( ) : void
SetPixel ( int x, int y, int color ) : void
UnlockBitmap ( ) : void
this ( int x, int y ) : int

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
PixelAt ( int x, int y ) : int*

Method Details

BlitSingleColor() public method

public BlitSingleColor ( FastBitmap bitmap, Point location, int test_color, int blit_color ) : void
bitmap FastBitmap
location Point
test_color int
blit_color int
return void

Dispose() public method

Call, when you no longer need this fast bitmap nor the bitmap locked with this instance.
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FastBitmap() public method

public FastBitmap ( Bitmap subject_bitmap ) : System
subject_bitmap System.Drawing.Bitmap
return System

GetColor() public method

public GetColor ( Point point ) : Color
point Point
return Color

GetColor() public method

public GetColor ( int x, int y ) : Color
x int
y int
return Color

GetPixel() public method

public GetPixel ( Point point ) : int
point Point
return int

GetPixel() public method

public GetPixel ( int x, int y ) : int
x int
y int
return int

IsIn() public method

Does an exact match of this bitmap in fast_bitmap in basepoint.
public IsIn ( FastBitmap fast_bitmap, Point basepoint ) : bool
fast_bitmap FastBitmap
basepoint Point
return bool

IsIn() public method

Matches until difference is more than total tolerance.
public IsIn ( FastBitmap fast_bitmap, Point basepoint, int tolerance ) : bool
fast_bitmap FastBitmap
basepoint Point
tolerance int
return bool

IsIn() public method

Tests whether this bitmap exists in the collection.
public IsIn ( IEnumerable bmps ) : bool
bmps IEnumerable
return bool

IsMatch() public static method

Returns whether these two fast bitmaps match in width, height and pixel data.
public static IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2 ) : bool
fast_bitmap1 FastBitmap
fast_bitmap2 FastBitmap
return bool

IsMatch() public static method

Returns whether these two fast bitmaps match in width, height and pixel data within the given sub rectangle.
public static IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2, Rectangle sub_rect ) : bool
fast_bitmap1 FastBitmap
fast_bitmap2 FastBitmap
sub_rect System.Drawing.Rectangle
return bool

IsMatch() public static method

public static IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2, int total_tolerance ) : bool
fast_bitmap1 FastBitmap
fast_bitmap2 FastBitmap
total_tolerance int
return bool

LockBitmap() public method

public LockBitmap ( ) : void
return void

SetPixel() public method

public SetPixel ( int x, int y, int color ) : void
x int
y int
color int
return void

UnlockBitmap() public method

public UnlockBitmap ( ) : void
return void

this() public method

public this ( int x, int y ) : int
x int
y int
return int