A 1 bit per pixel image.
![]() | Compare ( const PObject & obj ) const Determine if the two picture images are the same. |
![]() | Write ( PFile & dwg ) Save the picture drawing into the specified file in platform specific format. |
![]() | PPixelImage (PPixelBase * obj = NULL) Create a pixel image container. |
![]() | PPixelImage ( PDIMENSION dx, PDIMENSION dy, BYTE depth ) Create a new, blank pixmap or the specified dimensions. |
![]() | PPixelImage ( PRESOURCE_ID resID ) Create a pixel image, reading it from the applications resources. |
![]() | PPixelImage ( istream & stream ) Create a pixel image, reading the picture from the file in standard platform specific format. |
![]() | ~PPixelBase () Delete the pixel bitmap and its internal memory storage. |
![]() | Compare ( const PObject & obj ) const Determine if the two pixel images are the same. |
![]() | Write ( PFile & dwg ) Write the picture drawing into the specified file in platform specific format. |
![]() | GetPixelDataPtr () const Get the memory storage pointer for the raw pixel data. |
![]() | GetRasterDataPtr (PORDINATE y) const Get a pointer to the raw pixel data for the raster line. |
![]() | IsFullColour () const Determine if the pixel image can display full RGB colours. |
![]() | GetDepth () const Determine the depth (number of bits per pixel) of the bitmap image. |
![]() | GetPalette () const Get the palette associated with the pixel image. |
![]() | SetPalette ( const PPalette & pal ) Set the palette associated with the pixel map. |
![]() | SetPixelColour ( PORDINATE x, PORDINATE y, const PColour& colour ) Set the pixel at the location specified to the particular colour. |
![]() | GetPixelColour ( PORDINATE x, PORDINATE y ) const Get the colour of the pixel at the specified location. |
![]() | SetPixel ( PORDINATE x, PORDINATE y, BYTE value ) Set the pixel at the location to the specified value. |
![]() | GetPixel ( PORDINATE x, PORDINATE y ) const Get the pixel at the location. |
![]() | SetRaster ( PORDINATE y, const PColourArray & rasterColours, PDIMENSION width = P_MAX_INDEX ) Set the pixels for the whole or part of the raster line. |
![]() | GetRaster ( PORDINATE y, PColourArray & rasterColours, PDIMENSION width = P_MAX_INDEX ) const Get the pixels for the whole or part of the raster line. |
![]() | ExtractPixels ( PORDINATE x, PORDINATE y, PDIMENSION width, PDIMENSION height ) const Extract a section of pixels out of the image. |
![]() | GetDirtyArea () const Get the dirty area for the pixel image. |
![]() | SetDirtyArea ( PORDINATE x, PORDINATE y, PDIMENSION width = 1 ) Expand the dirty area to include the specified pixels. |
![]() | PPixels1 ( PDIMENSION dx, PDIMENSION dy ) Create a 1 bit per pixel image. |
![]() | SetPixel ( PORDINATE x, PORDINATE y, BYTE value ) Set the pixel at the location to the specified value. |
![]() | GetPixel ( PORDINATE x, PORDINATE y ) const Get the pixel at the location. |
![]() | Overrides from class PObject |
![]() | Overrides from class PImage |
![]() | Overrides from class PObject |
![]() | Overrides from class PImage |
![]() | New functions for class |
![]() | Overrides from class PPixelBase |
![]() | palette Colour look up table |
![]() | pixels Memory block for pixel data |
![]() | pixelLineBytes Width of a scan line in pixel data in bytes |
![]() | dirtyArea Area of pix map that was changed |
![]() | Clear the dirty area for the pixel image. |
A 1 bit per pixel image. This is a non true colour rendition of the image with 1 bit ber pixel allowing 2 colours to be represented. The palette is mandatory with pixel images of this class.
Access to this image will assert.
The normal use of this function is to check that a memory block was
successfully allocated on systems for which memory is a limited
resource.
An application that requires special processing of the data and takes
responsibility for all of the pixel depth detection etc could use this
function. For example if only 8 bit images are used the pixel packing
into the raster is very uniform across platforms and high levels of
optimisation could be made. It is recommended that the GetRaster() and SetRaster()
function be used instead of this function. Note that this function should be used instead of the
GetPixelDataPtr() function as the order of the raster lines is
platform dependent. That is: GetRaster(0) != GetPixelDataPtr() may be TRUE.
Returns TRUE if true colour pixel image.
For non true colour pixel images, this determines the correspondence
between the pixel values and the RGB colours they represent. For true
colour images this is only used as a hint to the destination device
about the best colours to use, assuming the destination device is not
a true colour display itself.
For non true colour pixel images, this determines the correspondence
between the pixel values and the RGB colours they represent. For true
colour images this is only used as a hint to the destination device
about the best colours to use, assuming the destination device is not
a true colour display itself. Note changing the palette for an existing image can have very strange
effects as the pixel values themselves do not change.
This is functionally equivalent to repeated calls to the
SetPixelColour() or SetPixel() functions but is optimised
for each image depth and platform.
This is functionally equivalent to repeated calls to the
SetPixelColour() or SetPixel() functions but is optimised
for each image depth and platform.
The dirty area is set by calls to the SetPixelColour(),
SetPixel() and SetRaster() functions. This can be used to
optimise processing by easily determining how much of image has been
changed. The dirty area continues to increase in size until the
ClearDirtyArea() function is called.
The dirty area is set by calls to the SetPixelColour(),
SetPixel() and SetRaster() functions. This can be used to
optimise processing by easily determining how much of image has been
changed. The dirty area continues to increase in size until the
ClearDirtyArea() function is called.
virtual Comparison Compare( const PObject & obj ) const
Overrides from class PImage
virtual BOOL Write( PFile & dwg )
PPixelImage(PPixelBase * obj = NULL)
PPixelImage( PDIMENSION dx, PDIMENSION dy, BYTE depth )
dy - Height of image in pixels.
depth - Depth of image in bits per pixel. PPixelImage( PRESOURCE_ID resID )
PPixelImage( istream & stream )
~PPixelBase()
Overrides from class PObject
virtual Comparison Compare( const PObject & obj ) const
Overrides from class PImage
virtual BOOL Write( PFile & dwg )
New functions for class
PPixelDataPtr GetPixelDataPtr() const
PPixelDataPtr GetRasterDataPtr(PORDINATE y) const
BOOL IsFullColour() const
BYTE GetDepth() const
PPalette GetPalette() const
void SetPalette( const PPalette & pal )
virtual void SetPixelColour( PORDINATE x, PORDINATE y, const PColour& colour )
y - Vertical raster line.
colour - Colour to set pixel to.virtual PColour GetPixelColour( PORDINATE x, PORDINATE y ) const
y - Vertical raster line.virtual void SetPixel( PORDINATE x, PORDINATE y, BYTE value )
y - Vertical raster line.
value - New value for pixel.virtual BYTE GetPixel( PORDINATE x, PORDINATE y ) const
y - Vertical raster line.void SetRaster( PORDINATE y, const PColourArray & rasterColours, PDIMENSION width = P_MAX_INDEX )
rasterColours - Array of colours for pixels.
width - Number of pixels in raster to setvoid GetRaster( PORDINATE y, PColourArray & rasterColours, PDIMENSION width = P_MAX_INDEX ) const
rasterColours - Array of colours for pixels.
width - Number of pixels in raster to get.PPixelImage ExtractPixels( PORDINATE x, PORDINATE y, PDIMENSION width, PDIMENSION height ) const
y - Vertical raster line.
width - Horizontal width of the section of image to extract.
height - Vertical height of the section of image to extract.const PRect& GetDirtyArea() const
Clear the dirty area for the pixel image.
void SetDirtyArea( PORDINATE x, PORDINATE y, PDIMENSION width = 1 )
y - Vertical raster line.
width - Number of pixels to set as "dirty".PPixelDataPtr CalculateRaster( PORDINATE x, PORDINATE y, PDIMENSION & widthToLastX ) const
y - Vertical raster line.
widthToLastX - Width value to convert to a last X value. This is a number of pixels
provided by the calling function that is altered to a horizontal
pixel number. This is assured to be within the bounds of raster line.
virtual void SetRasterColours( PORDINATE x, PORDINATE y, const PColourArray & rasterColours, PDIMENSION width )
y - Vertical raster line.
rasterColours - Array of colours for pixels.
width - Number of pixels in raster to setvirtual void GetRasterColours( PORDINATE x, PORDINATE y, PColourArray & rasterColours, PDIMENSION width ) const
y - Vertical raster line.
rasterColours - Array of colours for pixels.
width - Number of pixels in raster to get.virtual void SetRasterValues( PORDINATE x, PORDINATE y, const BYTE * raster, PDIMENSION width )
y - Vertical raster line.
raster - Pointer to array of values for pixels.
width - Number of pixels in raster to set.virtual void GetRasterValues( PORDINATE x, PORDINATE y, BYTE * raster, PDIMENSION width ) const
y - Vertical raster line.
raster - Pointer to array of values for pixels.
width - Number of pixels in raster to get.PPalette palette
PPixelDataPtr pixels
PINDEX pixelLineBytes
PRect dirtyArea
PPixels1( PDIMENSION dx, PDIMENSION dy )
dy - Height of image in pixels. Overrides from class PPixelBase
virtual void SetPixel( PORDINATE x, PORDINATE y, BYTE value )
y - Vertical raster line.
value - New value for pixel.virtual BYTE GetPixel( PORDINATE x, PORDINATE y ) const
y - Vertical raster line.virtual void SetRasterValues( PORDINATE x, PORDINATE y, const BYTE * raster, PDIMENSION width )
y - Vertical raster line.
raster - Pointer to array of values for pixels.
width - Number of pixels in raster to set.virtual void GetRasterValues( PORDINATE x, PORDINATE y, BYTE * raster, PDIMENSION width ) const
y - Vertical raster line.
raster - Pointer to array of values for pixels.
width - Number of pixels in raster to get.
Alphabetic index HTML hierarchy of classes or Java