ContRap-Libraries
Public Member Functions | Data Fields

crp::RGBAPixel Struct Reference

Class RGBA pixel defines pixels which have red green and blue values and an alpha channel value. More...

#include <image.h>

Public Member Functions

void set (unsigned char r_, unsigned char g_, unsigned char b_, unsigned char a_=0)
 Set the rgb(a) values of a RGBAPixel, alpha defaults to 0;.

Data Fields

unsigned char b
 Blue pixel amount.
unsigned char g
 Green pixel amount.
unsigned char r
 Red pixel amount.
unsigned char a
 Alpha value.

Detailed Description

Class RGBA pixel defines pixels which have red green and blue values and an alpha channel value.


Member Function Documentation

void crp::RGBAPixel::set ( unsigned char  r_,
unsigned char  g_,
unsigned char  b_,
unsigned char  a_ = 0 
) [inline]

Set the rgb(a) values of a RGBAPixel, alpha defaults to 0;.


Field Documentation

unsigned char crp::RGBAPixel::a

Alpha value.

unsigned char crp::RGBAPixel::b

Blue pixel amount.

unsigned char crp::RGBAPixel::g

Green pixel amount.

unsigned char crp::RGBAPixel::r

Red pixel amount.


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