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. More... | |
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 More... | |
Public Attributes | |
icl8u | r |
icl8u | g |
icl8u | b |
icl8u | a |
Utility class which helps to convert rgb to RG-Chroma and back.
Create a new color with given red, green, blue and alpha value.
|
inlinestatic |
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) |
icl8u icl::qt::Dragger::Color::a |
!< blue value
icl8u icl::qt::Dragger::Color::b |
!< green value
icl8u icl::qt::Dragger::Color::g |
!< red value
icl8u icl::qt::Dragger::Color::r |