C# Класс GR.Imaging.FastBitmap

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
PixelAt ( int x, int y ) : int*

Описание методов

BlitSingleColor() публичный Метод

public BlitSingleColor ( FastBitmap bitmap, Point location, int test_color, int blit_color ) : void
bitmap FastBitmap
location Point
test_color int
blit_color int
Результат void

Dispose() публичный Метод

Call, when you no longer need this fast bitmap nor the bitmap locked with this instance.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FastBitmap() публичный Метод

public FastBitmap ( Bitmap subject_bitmap ) : System
subject_bitmap System.Drawing.Bitmap
Результат System

GetColor() публичный Метод

public GetColor ( Point point ) : Color
point Point
Результат Color

GetColor() публичный Метод

public GetColor ( int x, int y ) : Color
x int
y int
Результат Color

GetPixel() публичный Метод

public GetPixel ( Point point ) : int
point Point
Результат int

GetPixel() публичный Метод

public GetPixel ( int x, int y ) : int
x int
y int
Результат int

IsIn() публичный Метод

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
Результат bool

IsIn() публичный Метод

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
Результат bool

IsIn() публичный Метод

Tests whether this bitmap exists in the collection.
public IsIn ( IEnumerable bmps ) : bool
bmps IEnumerable
Результат bool

IsMatch() публичный статический Метод

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
Результат bool

IsMatch() публичный статический Метод

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
Результат bool

IsMatch() публичный статический Метод

public static IsMatch ( FastBitmap fast_bitmap1, FastBitmap fast_bitmap2, int total_tolerance ) : bool
fast_bitmap1 FastBitmap
fast_bitmap2 FastBitmap
total_tolerance int
Результат bool

LockBitmap() публичный Метод

public LockBitmap ( ) : void
Результат void

SetPixel() публичный Метод

public SetPixel ( int x, int y, int color ) : void
x int
y int
color int
Результат void

UnlockBitmap() публичный Метод

public UnlockBitmap ( ) : void
Результат void

this() публичный Метод

public this ( int x, int y ) : int
x int
y int
Результат int