Zivid C++ API 2.14.0+e4a0c4a9-1
|
Color with 8-bit red, green, blue and alpha channels in the sRGB color space. More...
#include <Zivid/Color.h>
Public Member Functions | |
ColorRGBABase ()=default | |
Constructor. | |
ColorRGBABase (T red, T green, T blue, T alpha) | |
Constructor. | |
Public Member Functions inherited from Zivid::ColorRGBABase< uint8_t > | |
ColorRGBABase ()=default | |
Constructor. | |
ColorRGBABase (uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha) | |
Constructor. | |
ZIVID_UTILS_EXPORT bool | operator== (const ColorRGBABase &rhs) const |
Check for equality. | |
ZIVID_UTILS_EXPORT bool | operator!= (const ColorRGBABase &rhs) const |
Check for inequality. | |
std::string | toString () const |
Get string representation. | |
Additional Inherited Members | |
Public Types inherited from Zivid::ColorRGBABase< uint8_t > | |
using | ValueType |
The type of the channel values. | |
Public Attributes inherited from Zivid::ColorRGBABase< uint8_t > | |
uint8_t | r |
Red channel. | |
uint8_t | g |
Green channel. | |
uint8_t | b |
Blue channel. | |
uint8_t | a |
Alpha channel. | |
Color with 8-bit red, green, blue and alpha channels in the sRGB color space.
The order of the members is r, g, b, a and each member is represented as an uint8_t. The members have values from 0 to 255.
The sRGB color space is suitable for showing an image on a display for human viewing. It is easier to see details in darker areas of an image in sRGB, than in linear RGB, as more of the dynamic range is dedicated to darker colors. This format is assumed by default by most monitors and should be used when displaying an image.
|
default |
Constructor.
|
inline |
Constructor.