Image Component Library (ICL)
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
icl::qt::Dragger::Color Struct Reference

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
 

Detailed Description

Utility class which helps to convert rgb to RG-Chroma and back.

Constructor & Destructor Documentation

◆ Color()

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.

Member Function Documentation

◆ xyb_to_rg()

static void icl::qt::Dragger::Color::xyb_to_rg ( icl8u r,
icl8u g,
float  b,
float  x,
float  y 
)
inlinestatic

conversion function calculates r and g given b R and G

Parameters
rreturn value for r
greturn value for g
bblue value
xR value (it is called x because R complains the x axis of the ChromaWidget)
yG value (it is called y because G complains the y axis of the ChromaWidget)

Member Data Documentation

◆ a

icl8u icl::qt::Dragger::Color::a

!< blue value

◆ b

icl8u icl::qt::Dragger::Color::b

!< green value

◆ g

icl8u icl::qt::Dragger::Color::g

!< red value

◆ r

icl8u icl::qt::Dragger::Color::r

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