Correction for a single color byte value All configuration values are unsigned int and assume the color value to be between 0 and 255.
More...
#include <RgbChannelAdjustment.h>
Correction for a single color byte value All configuration values are unsigned int and assume the color value to be between 0 and 255.
§ RgbChannelAdjustment()
RgbChannelAdjustment::RgbChannelAdjustment |
( |
uint8_t |
adjustR, |
|
|
uint8_t |
adjustG, |
|
|
uint8_t |
adjustB, |
|
|
QString |
channelName = "" |
|
) |
| |
§ apply()
void RgbChannelAdjustment::apply |
( |
uint8_t |
input, |
|
|
uint8_t |
brightness, |
|
|
uint8_t & |
red, |
|
|
uint8_t & |
green, |
|
|
uint8_t & |
blue |
|
) |
| |
Transform the given array value.
- Parameters
-
input | The input color bytes |
brightness | The current brightness value |
red | The red color component |
green | The green color component |
blue | The blue color component |
- Note
- The values are updated in place.
§ getAdjustmentB()
uint8_t RgbChannelAdjustment::getAdjustmentB |
( |
| ) |
const |
- Returns
- The current adjustB value
§ getAdjustmentG()
uint8_t RgbChannelAdjustment::getAdjustmentG |
( |
| ) |
const |
- Returns
- The current adjustG value
§ getAdjustmentR()
uint8_t RgbChannelAdjustment::getAdjustmentR |
( |
| ) |
const |
- Returns
- The current adjustR value
§ setAdjustment()
void RgbChannelAdjustment::setAdjustment |
( |
uint8_t |
adjustR, |
|
|
uint8_t |
adjustG, |
|
|
uint8_t |
adjustB |
|
) |
| |
setAdjustment RGB
- Parameters
-
The documentation for this class was generated from the following files: