Derm.Raster.LayerImage< T > Class Template Reference

Layered image. More...

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

List of all members.

Public Member Functions

 LayerImage (int w, int h, int xsamples, int ysamples)
 Construct a LayerImage specifying the image extents and chrominance layers sampling.
 LayerImage (int w, int h)
 Construct a LayerImage specifying the image extents.
 LayerImage ()
 Construct a LayerImage.
override void AllocatePixelData (int w, int h)
 Allocate pixel data buffer.
override object GetPixelData (int layer)
 Pixel data buffer.

Protected Attributes

const int LAYER_COUNT = 3
 Number of layers composing this LayerImage.
T[][,] mImage = null
 LayerImage pixel data.
int mLayerXSamples = 1
 Width sampling of layers composing this LayerImage.
int mLayerYSamples = 1
 Height sampling of layers composing this LayerImage.

Properties

override Pixel.Type PixelFormat [get]
 Image pixel format.
override IColor this [int layer, int x, int y] [get, set]
 Pixel data accessor.
int XSampling [get]
 Chrominance horizontal sampling.
int YSampling [get]
 Chrominance vertical sampling.

Detailed Description

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

Layered image.

Type Constraints
T :IColor 
T :new() 

Constructor & Destructor Documentation

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

Construct a LayerImage.

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

Construct a LayerImage specifying the image extents.

Parameters:
w A System.Int32 specifying the width of the image.
h A System.Int32 specifying the height of the image.
template<T >
Derm.Raster.LayerImage< T >.LayerImage ( int  w,
int  h,
int  xsamples,
int  ysamples 
)

Construct a LayerImage specifying the image extents and chrominance layers sampling.


Member Function Documentation

template<T >
override void Derm.Raster.LayerImage< 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.LayerImage< T >.GetPixelData ( int  layer  )  [virtual]

Pixel data buffer.

Implements Derm.Raster.Image.


Member Data Documentation

template<T >
const int Derm.Raster.LayerImage< T >.LAYER_COUNT = 3 [protected]

Number of layers composing this LayerImage.

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

LayerImage pixel data.

template<T >
int Derm.Raster.LayerImage< T >.mLayerXSamples = 1 [protected]

Width sampling of layers composing this LayerImage.

template<T >
int Derm.Raster.LayerImage< T >.mLayerYSamples = 1 [protected]

Height sampling of layers composing this LayerImage.


Property Documentation

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

Image pixel format.

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

This property shall be only an indicative value about the image color resolution, to allow the best memory management due color precision. Actually this property shall not be used to determine image layering (i.e. YUV formats imply three layers).

Reimplemented from Derm.Raster.Image.

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

Pixel data accessor.

Parameters:
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.

template<T >
int Derm.Raster.LayerImage< T >.XSampling [get]

Chrominance horizontal sampling.

template<T >
int Derm.Raster.LayerImage< T >.YSampling [get]

Chrominance vertical sampling.



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