|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class ByteBGRXValueC represents colour by a quadruple of integer
numbers inside of the range 0-255. The quadruple is related to
the general RGB representation of colour. This colour is useful
mainly for building applications with colour grabbers.
Variables:
Methods:
- ByteBGRXValueC(GreyValueT r = BLACK,GreyValueT g = BLACK,GreyValueT b = BLACK,GreyValueT x = BLACK)
-
Constructs a colour from four colour component. This constructor
serves also as the default constructor.
- ByteBGRXValueC(const ByteRGBValueC & rgb,GreyValueT x = BLACK)
-
Creates the colour from the triple RGB colour 'rgb' and the fourth
colour component 'x'.
- const ByteBGRXValueC & Set(GreyValueT r,GreyValueT g,GreyValueT b,GreyValueT x = BLACK)
-
Sets the red, green, blue, and X colour compoments according
to the values 'r', 'g', 'b', and 'x' respectively.
- ByteRGBValueC ByteRGB() const
-
Get a RGB pixel value.
Access to the colour components
-------------------------------
- const ByteGreyValueT & Red() const
-
Returns the level of the red component.
- const ByteGreyValueT & Green() const
-
Returns the level of the green component.
- const ByteGreyValueT & Blue() const
-
Returns the level of the blue component.
- const ByteGreyValueT & X() const
-
Returns the level of the fourth colour component.
- ByteGreyValueT & Red()
-
Access to the red component.
- ByteGreyValueT & Green()
-
Access to the green component.
- ByteGreyValueT & Blue()
-
Access to the blue component.
- ByteGreyValueT & X()
-
Access to the fourth colour component.
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|