Image Component Library (ICL)
|
Utility class which helps to convert rgb to RG-Chroma and back. More...
#include <Dragger.h>
Public Member Functions | |
Color (icl8u r=0, icl8u g=0, icl8u b=0, icl8u a=255) | |
Create a new color with given red, green, blue and alpha value. | |
Static Public Member Functions | |
static void | xyb_to_rg (icl8u &r, icl8u &g, float b, float x, float y) |
conversion function calculates r and g given b R and G | |
Public Attributes | |
icl8u | r |
icl8u | g |
icl8u | b |
icl8u | a |
Utility class which helps to convert rgb to RG-Chroma and back.
icl::qt::Dragger::Color::Color | ( | icl8u | r = 0 , |
icl8u | g = 0 , |
||
icl8u | b = 0 , |
||
icl8u | a = 255 |
||
) | [inline] |
Create a new color with given red, green, blue and alpha value.
static void icl::qt::Dragger::Color::xyb_to_rg | ( | icl8u & | r, |
icl8u & | g, | ||
float | b, | ||
float | x, | ||
float | y | ||
) | [inline, static] |
conversion function calculates r and g given b R and G
r | return value for r |
g | return value for g |
b | blue value |
x | R value (it is called x because R complains the x axis of the ChromaWidget) |
y | G value (it is called y because G complains the y axis of the ChromaWidget) |
!< blue value
!< green value
!< red value