C# Class GR.Imaging.FastBitmap

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
PixelAt ( int x, int y ) : int*

Method Details

BlitSingleColor() public méthode

public BlitSingleColor ( FastBitmap bitmap, Point location, int test_color, int blit_color ) : void
bitmap FastBitmap
location Point
test_color int
blit_color int
Résultat void

Dispose() public méthode

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

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FastBitmap() public méthode

public FastBitmap ( Bitmap subject_bitmap ) : System
subject_bitmap System.Drawing.Bitmap
Résultat System

GetColor() public méthode

public GetColor ( Point point ) : Color
point Point
Résultat Color

GetColor() public méthode

public GetColor ( int x, int y ) : Color
x int
y int
Résultat Color

GetPixel() public méthode

public GetPixel ( Point point ) : int
point Point
Résultat int

GetPixel() public méthode

public GetPixel ( int x, int y ) : int
x int
y int
Résultat int

IsIn() public méthode

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

IsIn() public méthode

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

IsIn() public méthode

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

IsMatch() public static méthode

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

IsMatch() public static méthode

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

IsMatch() public static méthode

public static IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2, int total_tolerance ) : bool
fast_bitmap1 FastBitmap
fast_bitmap2 FastBitmap
total_tolerance int
Résultat bool

LockBitmap() public méthode

public LockBitmap ( ) : void
Résultat void

SetPixel() public méthode

public SetPixel ( int x, int y, int color ) : void
x int
y int
color int
Résultat void

UnlockBitmap() public méthode

public UnlockBitmap ( ) : void
Résultat void

this() public méthode

public this ( int x, int y ) : int
x int
y int
Résultat int