Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

iptk::ColourPixel Class Reference

#include <pixel.h>

List of all members.


Detailed Description

A class to encapsulate a pixel of an RGB image.


Public Member Functions

 ColourPixel (void)
 Default Constructor.

 ColourPixel (int xcoord, int ycoord, double red, double green, double blue)
 Custom Initialisation Constructor.


Public Attributes

int x
 x-coordinate of the ColourPixel.

int y
 y-coordinate of the ColourPixel.

double r
 Red value at the ColourPixel.

double g
 Green value at the ColourPixel.

double b
 Blue value at the ColourPixel.


Constructor & Destructor Documentation

iptk::ColourPixel::ColourPixel void   ) 
 

Default Constructor.



This default constructor initialises the Pixel object with (0, 0) as the coordinate and 0 as the red, green and blue values.
This class does not require an explicit copy constructor or an explicit destructor.

iptk::ColourPixel::ColourPixel int  xcoord,
int  ycoord,
double  red,
double  green,
double  blue
 

Custom Initialisation Constructor.



The x-cooridnate x is initialised by xcoord and the y-coordinate y is initialised by ycoord. The colour values of the pixel r, g, and b are initialised by red, green and blue respectively.


The documentation for this class was generated from the following file:
Generated on Mon Nov 22 11:12:42 2004 for ImprolaLib by doxygen 1.3.7