Derm.Raster.RasterImage< T > Class Template Reference

Raster image. More...

Inheritance diagram for Derm.Raster.RasterImage< T >:
Derm.Raster.Image

List of all members.

Public Member Functions

 RasterImage (int w, int h)
 Construct a RasterImage.
 RasterImage ()
 Construct a RasterImage.
override void AllocatePixelData (int w, int h)
 Allocate pixel data buffer.
override object GetPixelData (int layer)
 Pixel data buffer.

Protected Attributes

T[,] mImage = null
 RasterImage pixel data.

Properties

override Pixel.Type PixelFormat [get]
 Image pixel format.
override IColor this [int layer, int x, int y] [get, set]
 Pixel data accessor.

Detailed Description

template<T>
class Derm::Raster::RasterImage< T >

Raster image.

A RasterImage allow to store and process pixel data. The image is composed by a rectangle of pixels, which format determine the pixel size.

Type Constraints
T :IColor 
T :new() 

Constructor & Destructor Documentation

template<T >
Derm.Raster.RasterImage< T >.RasterImage (  ) 

Construct a RasterImage.

template<T >
Derm.Raster.RasterImage< T >.RasterImage ( int  w,
int  h 
)

Construct a RasterImage.

Parameters:
w A System.Int32 specifying the image width, in pixels.
h A System.Int32 specifying the image height, in pixels.

Member Function Documentation

template<T >
override void Derm.Raster.RasterImage< T >.AllocatePixelData ( int  w,
int  h 
) [virtual]

Allocate pixel data buffer.

Parameters:
w A System.Int32
h A System.Int32

Implements Derm.Raster.Image.

template<T >
override object Derm.Raster.RasterImage< T >.GetPixelData ( int  layer  )  [virtual]

Pixel data buffer.

Implements Derm.Raster.Image.


Member Data Documentation

template<T >
T [,] Derm.Raster.RasterImage< T >.mImage = null [protected]

RasterImage pixel data.


Property Documentation

template<T >
override Pixel.Type Derm.Raster.RasterImage< T >.PixelFormat [get]

Image pixel format.

Returns:
It returns a Pixel.Type specifying the image color resolution.

Reimplemented from Derm.Raster.Image.

template<T >
override IColor Derm.Raster.RasterImage< T >.this[int layer, int x, int y] [get, set]

Pixel data accessor.

Parameters:
layer A System.Int32 indicating the layer to fetch pixel data.
x A System.Int32 indicating the horizontal coordinate of the pixel. The left corners has the coordinate 0.
y A System.Int32 indicating the vertical coordinate of the pixel. The bottom corners has the coordinate 0.

Reimplemented from Derm.Raster.Image.



Services powered by Get Deus Ex Render Machina at SourceForge.net. Fast, secure and Free Open Source software downloads