class PPixels2: public PPixelBase

A 2 bit per pixel image.

Inheritance:


Public Methods

[more] PPixels2 ( PDIMENSION dx, PDIMENSION dy )
Create a 2 bit per pixel image.
[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 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 2 bit per pixel image. This is a non true colour rendition of the image with 2 bits ber pixel allowing 4 colours to be represented. The palette is mandatory with pixel images of this class.
o PPixels2( PDIMENSION dx, PDIMENSION dy )
Create a 2 bit per pixel image.
Parameters:
dx - Width of image in pixels.
dy - Height of image in pixels.

o Overrides from class PPixelBase

ovirtual void SetPixel( PORDINATE x, PORDINATE y, BYTE value )
Set the pixel at the location to the specified value. This sets the colour of the pixel to that in the palette at the index position.
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 index into the palette that the pixel value represents.

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

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 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 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++.