Layered image. More...
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. |
Layered image.
T | : | IColor | |
T | : | new() |
Derm.Raster.LayerImage< T >.LayerImage | ( | ) |
Construct a LayerImage.
Derm.Raster.LayerImage< T >.LayerImage | ( | int | w, | |
int | h | |||
) |
Construct a LayerImage specifying the image extents.
w | A System.Int32 specifying the width of the image. | |
h | A System.Int32 specifying the height of the image. |
Derm.Raster.LayerImage< T >.LayerImage | ( | int | w, | |
int | h, | |||
int | xsamples, | |||
int | ysamples | |||
) |
Construct a LayerImage specifying the image extents and chrominance layers sampling.
override void Derm.Raster.LayerImage< T >.AllocatePixelData | ( | int | w, | |
int | h | |||
) | [virtual] |
Allocate pixel data buffer.
w | A System.Int32 | |
h | A System.Int32 |
Implements Derm.Raster.Image.
override object Derm.Raster.LayerImage< T >.GetPixelData | ( | int | layer | ) | [virtual] |
Pixel data buffer.
Implements Derm.Raster.Image.
const int Derm.Raster.LayerImage< T >.LAYER_COUNT = 3 [protected] |
Number of layers composing this LayerImage.
T [][,] Derm.Raster.LayerImage< T >.mImage = null [protected] |
LayerImage pixel data.
int Derm.Raster.LayerImage< T >.mLayerXSamples = 1 [protected] |
Width sampling of layers composing this LayerImage.
int Derm.Raster.LayerImage< T >.mLayerYSamples = 1 [protected] |
Height sampling of layers composing this LayerImage.
override Pixel.Type Derm.Raster.LayerImage< T >.PixelFormat [get] |
Image pixel format.
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.
override IColor Derm.Raster.LayerImage< T >.this[int layer, int x, int y] [get, set] |
Pixel data accessor.
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.
int Derm.Raster.LayerImage< T >.XSampling [get] |
Chrominance horizontal sampling.
int Derm.Raster.LayerImage< T >.YSampling [get] |
Chrominance vertical sampling.