C# Класс Pinta.Core.BitVector2DSurfaceAdapter

Adapts a Surface class so it can be used as a two dimensional boolean array. Elements are stored compactly, such that each pixel stores 32 boolean values. However, the usable width is the same as that of the adapted surface. (in other words, a surface that is 100 pixels wide can still only store 100 booleans per row)
Наследование: IBitVector2D
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BitVector2DSurfaceAdapter ( ImageSurface surface ) : System
Clear ( bool newValue ) : void
Clone ( ) : BitVector2DSurfaceAdapter
Get ( int x, int y ) : bool
GetUnchecked ( int x, int y ) : bool
Invert ( Point pt ) : void
Invert ( Rectangle rect ) : void
Invert ( Pinta.Core.Scanline scan ) : void
Invert ( int x, int y ) : void
Set ( Point pt, bool newValue ) : void
Set ( Rectangle rect, bool newValue ) : void
Set ( Pinta.Core.Scanline scan, bool newValue ) : void
Set ( int x, int y, bool newValue ) : void
SetUnchecked ( int x, int y, bool newValue ) : void
this ( Point pt ) : bool
this ( int x, int y ) : bool

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

Метод Описание
ICloneable ( ) : object

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

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

public BitVector2DSurfaceAdapter ( ImageSurface surface ) : System
surface Cairo.ImageSurface
Результат System

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

public Clear ( bool newValue ) : void
newValue bool
Результат void

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

public Clone ( ) : BitVector2DSurfaceAdapter
Результат BitVector2DSurfaceAdapter

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

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

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

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

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

public Invert ( Point pt ) : void
pt Point
Результат void

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

public Invert ( Rectangle rect ) : void
rect Cairo.Rectangle
Результат void

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

public Invert ( Pinta.Core.Scanline scan ) : void
scan Pinta.Core.Scanline
Результат void

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

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

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

public Set ( Point pt, bool newValue ) : void
pt Point
newValue bool
Результат void

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

public Set ( Rectangle rect, bool newValue ) : void
rect Cairo.Rectangle
newValue bool
Результат void

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

public Set ( Pinta.Core.Scanline scan, bool newValue ) : void
scan Pinta.Core.Scanline
newValue bool
Результат void

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

public Set ( int x, int y, bool newValue ) : void
x int
y int
newValue bool
Результат void

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

public SetUnchecked ( int x, int y, bool newValue ) : void
x int
y int
newValue bool
Результат void

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

public this ( Point pt ) : bool
pt Point
Результат bool

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

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