C# Class PixelMapSharp.PixelMap

A container of mutable pixel data.
Mostrar archivo Open project: ruarai/PixelMap Class Usage Examples

Public Properties

Property Type Description
Height int
Width int

Public Methods

Method Description
GetBitmap ( ) : Bitmap

Produce a Bitmap from this PixelMap.

Inside ( Point p ) : bool

Determine if a point is within this PixelMap.

PixelMap ( Bitmap b ) : System

Quickly creates a PixelMap from a Bitmap.

PixelMap ( PixelMap original ) : System

Clones a PixelMap.

PixelMap ( int width, int height ) : System

Creates a blank PixelMap of desired width and height.

PixelMap ( string s ) : System

Quickly creates a PixelMap from a file path.

SlowLoad ( Bitmap b ) : PixelMap

Load a Bitmap pixel-by-pixel, slowly.

this ( Point p ) : Pixel

Access a Pixel of the PixelMap from its X and Y coordinates contained within a Point.

this ( int i ) : Pixel

Access a Pixel of the PixelMap from its flattened index.

this ( int x, int y ) : Pixel

Access a Pixel of the PixelMap from its X and Y coordinates.

Method Details

GetBitmap() public method

Produce a Bitmap from this PixelMap.
public GetBitmap ( ) : Bitmap
return System.Drawing.Bitmap

Inside() public method

Determine if a point is within this PixelMap.
public Inside ( Point p ) : bool
p Point
return bool

PixelMap() public method

Quickly creates a PixelMap from a Bitmap.
public PixelMap ( Bitmap b ) : System
b System.Drawing.Bitmap
return System

PixelMap() public method

Clones a PixelMap.
public PixelMap ( PixelMap original ) : System
original PixelMap
return System

PixelMap() public method

Creates a blank PixelMap of desired width and height.
public PixelMap ( int width, int height ) : System
width int
height int
return System

PixelMap() public method

Quickly creates a PixelMap from a file path.
public PixelMap ( string s ) : System
s string
return System

SlowLoad() public static method

Load a Bitmap pixel-by-pixel, slowly.
public static SlowLoad ( Bitmap b ) : PixelMap
b System.Drawing.Bitmap
return PixelMap

this() public method

Access a Pixel of the PixelMap from its X and Y coordinates contained within a Point.
public this ( Point p ) : Pixel
p Point
return Pixel

this() public method

Access a Pixel of the PixelMap from its flattened index.
public this ( int i ) : Pixel
i int
return Pixel

this() public method

Access a Pixel of the PixelMap from its X and Y coordinates.
public this ( int x, int y ) : Pixel
x int
y int
return Pixel

Property Details

Height public_oe property

The height of the PixelMap in pixels.
public int Height
return int

Width public_oe property

The width of the PixelMap in pixels.
public int Width
return int