C# Class 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)
Inheritance: IBitVector2D
ファイルを表示 Open project: xxgreg/Pinta Class Usage Examples

Public Methods

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

Private Methods

Method Description
ICloneable ( ) : object

Method Details

BitVector2DSurfaceAdapter() public method

public BitVector2DSurfaceAdapter ( ImageSurface surface ) : System
surface Cairo.ImageSurface
return System

Clear() public method

public Clear ( bool newValue ) : void
newValue bool
return void

Clone() public method

public Clone ( ) : BitVector2DSurfaceAdapter
return BitVector2DSurfaceAdapter

Get() public method

public Get ( int x, int y ) : bool
x int
y int
return bool

GetUnchecked() public method

public GetUnchecked ( int x, int y ) : bool
x int
y int
return bool

Invert() public method

public Invert ( Point pt ) : void
pt Point
return void

Invert() public method

public Invert ( Rectangle rect ) : void
rect Cairo.Rectangle
return void

Invert() public method

public Invert ( Pinta.Core.Scanline scan ) : void
scan Pinta.Core.Scanline
return void

Invert() public method

public Invert ( int x, int y ) : void
x int
y int
return void

Set() public method

public Set ( Point pt, bool newValue ) : void
pt Point
newValue bool
return void

Set() public method

public Set ( Rectangle rect, bool newValue ) : void
rect Cairo.Rectangle
newValue bool
return void

Set() public method

public Set ( Pinta.Core.Scanline scan, bool newValue ) : void
scan Pinta.Core.Scanline
newValue bool
return void

Set() public method

public Set ( int x, int y, bool newValue ) : void
x int
y int
newValue bool
return void

SetUnchecked() public method

public SetUnchecked ( int x, int y, bool newValue ) : void
x int
y int
newValue bool
return void

this() public method

public this ( Point pt ) : bool
pt Point
return bool

this() public method

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