libcvd
Public Member Functions | Public Attributes | List of all members
CVD::Rgb8 Struct Reference

A 32-bit colour. More...

#include <rgb8.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

A 32-bit colour.

Deprecated The templated Rgba should be used instead (Rgba<byte> is exactly equivalent).

Constructor & Destructor Documentation

◆ Rgb8()

CVD::Rgb8::Rgb8 ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 0 
)
inlineexplicit

Construct an Rgb8 as specified.

Parameters
rThe red component
gThe green component
bThe blue component
aThe dummy byte (defaults to zero)

The documentation for this struct was generated from the following file: