CVD::Rgb8 Struct Reference
[Image storage and manipulation]

#include <rgb8.h>

List of all members.

Public Member Functions

 Rgb8 (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0)
 Rgb8 ()
 Default constructor. Sets all elements to zero.

Public Attributes

unsigned char blue
 The blue component.
unsigned char dummy
 The 4th byte, usually either ignored or used to represent the alpha value.
unsigned char green
 The green component.
unsigned char red
 The red component.

Detailed Description

A 32-bit colour. Deprecated The templated Rgba should be used instead (Rgba<byte> is exactly equivalent).

Definition at line 33 of file rgb8.h.


Constructor & Destructor Documentation

CVD::Rgb8::Rgb8 (  )  [inline]

Default constructor. Sets all elements to zero.

Definition at line 41 of file rgb8.h.

CVD::Rgb8::Rgb8 ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 0 
) [inline]

Construct an Rgb8 as specified

Parameters:
r The red component
g The green component
b The blue component
a The dummy byte (defaults to zero)

Definition at line 51 of file rgb8.h.


Member Data Documentation

unsigned char CVD::Rgb8::blue

The blue component.

Definition at line 37 of file rgb8.h.

unsigned char CVD::Rgb8::dummy

The 4th byte, usually either ignored or used to represent the alpha value.

Definition at line 38 of file rgb8.h.

unsigned char CVD::Rgb8::green

The green component.

Definition at line 36 of file rgb8.h.

unsigned char CVD::Rgb8::red

The red component.

Definition at line 35 of file rgb8.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:52 2013