class PPixels24: public PPixelBase

A 24 bit per pixel image.

Inheritance:


Public Methods

[more] PPixels24 ( PDIMENSION dx, PDIMENSION dy )
Create a 24 bit per pixel image.
[more]virtual void SetPixelColour ( PORDINATE x, PORDINATE y, const PColour& colour )
Set the pixel at the location specified to the particular colour.
[more]virtual PColour GetPixelColour ( PORDINATE x, PORDINATE y ) const
Get the colour of the pixel at the specified location.
[more]virtual void SetPixel ( PORDINATE x, PORDINATE y, BYTE value )
Set the pixel at the location to the specified value.
[more]virtual BYTE GetPixel ( PORDINATE x, PORDINATE y ) const
Get the pixel at the location.

Public

[more] Overrides from class PPixelBase

Protected Methods

[more]virtual void SetRasterColours ( PORDINATE x, PORDINATE y, const PColourArray & rasterColours, PDIMENSION width )
Set the colours of a raster line in the pixel image.
[more]virtual void GetRasterColours ( PORDINATE x, PORDINATE y, PColourArray & rasterColours, PDIMENSION width ) const
Get the colours of a raster line in the pixel image.
[more]virtual void SetRasterValues ( PORDINATE x, PORDINATE y, const BYTE * raster, PDIMENSION width )
Set the colours of a raster line in the pixel image.
[more]virtual void GetRasterValues ( PORDINATE x, PORDINATE y, BYTE * raster, PDIMENSION width ) const
Get the colours of a raster line in the pixel image.


Documentation

A 24 bit per pixel image. This is a true colour rendition of the image with 8 bits ber red, green and blue components.
o PPixels24( PDIMENSION dx, PDIMENSION dy )
Create a 24 bit per pixel image.
Parameters:
dx - Width of image in pixels.
dy - Height of image in pixels.

o Overrides from class PPixelBase

ovirtual void SetPixelColour( PORDINATE x, PORDINATE y, const PColour& colour )
Set the pixel at the location specified to the particular colour.
Parameters:
x - Horizontal position of pixel in raster.
y - Vertical raster line.
colour - Colour to set pixel to.

ovirtual PColour GetPixelColour( PORDINATE x, PORDINATE y ) const
Get the colour of the pixel at the specified location.

Returns:
colour for the pixel.
Parameters:
x - Horizontal position of pixel in raster.
y - Vertical raster line.

ovirtual void SetPixel( PORDINATE x, PORDINATE y, BYTE value )
Set the pixel at the location to the specified value. This will set a grey scale value for the pixel.
Parameters:
x - Horizontal position of pixel in raster.
y - Vertical raster line.
value - New value for pixel.

ovirtual BYTE GetPixel( PORDINATE x, PORDINATE y ) const
Get the pixel at the location. This returns the luminance for the pixel colour.

Returns:
current value of pixel.
Parameters:
x - Horizontal position of pixel in raster.
y - Vertical raster line.

ovirtual void SetRasterColours( PORDINATE x, PORDINATE y, const PColourArray & rasterColours, PDIMENSION width )
Set the colours of a raster line in the pixel image. This is the polymorphic form of the SetRaster() functions.
Parameters:
x - Horizontal position of start pixel in raster.
y - Vertical raster line.
rasterColours - Array of colours for pixels.
width - Number of pixels in raster to set

ovirtual void GetRasterColours( PORDINATE x, PORDINATE y, PColourArray & rasterColours, PDIMENSION width ) const
Get the colours of a raster line in the pixel image. This is the polymorphic form of the GetRaster() functions.
Parameters:
x - Horizontal position of start pixel in raster.
y - Vertical raster line.
rasterColours - Array of colours for pixels.
width - Number of pixels in raster to get.

ovirtual void SetRasterValues( PORDINATE x, PORDINATE y, const BYTE * raster, PDIMENSION width )
Set the colours of a raster line in the pixel image. This is the polymorphic form of the SetRaster() functions.
Parameters:
x - Horizontal position of start pixel in raster.
y - Vertical raster line.
raster - Pointer to array of values for pixels.
width - Number of pixels in raster to set.

ovirtual void GetRasterValues( PORDINATE x, PORDINATE y, BYTE * raster, PDIMENSION width ) const
Get the colours of a raster line in the pixel image. This is the polymorphic form of the GetRaster() functions.
Parameters:
x - Horizontal position of start pixel in raster.
y - Vertical raster line.
raster - Pointer to array of values for pixels.
width - Number of pixels in raster to get.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.