109 std::string rgbaToString(T r, T g, T b, T a)
111 return rgbaIntsToString(
static_cast<int>(r),
static_cast<int>(g),
static_cast<int>(b),
static_cast<int>(a));
115 std::string bgraToString(T b, T g, T r, T a)
117 return bgraIntsToString(
static_cast<int>(b),
static_cast<int>(g),
static_cast<int>(r),
static_cast<int>(a));
162 return Detail::rgbaToString(
r,
g,
b,
a);
224 return Detail::bgraToString(
b,
g,
r,
a);
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99
std::ostream & operator<<(std::ostream &stream, const Array2D< T > &array)
Serialize array information to a stream
Definition: Array2D.h:243
ZIVID_STATIC_ASSERT_DATA_FORMAT_TYPE(ColorRGBA, 4)
ColorBGRABase(T blue, T green, T red, T alpha)
Constructor
Definition: Color.h:196
T g
Green channel
Definition: Color.h:207
ColorBGRABase()=default
Constructor
T a
Alpha channel
Definition: Color.h:213
T ValueType
The type of the channel values
Definition: Color.h:190
T r
Red channel
Definition: Color.h:210
ZIVID_CORE_EXPORT bool operator!=(const ColorBGRABase &rhs) const
Check for inequality
ZIVID_CORE_EXPORT bool operator==(const ColorBGRABase &rhs) const
Check for equality
T b
Blue channel
Definition: Color.h:204
std::string toString() const
Get string representation
Definition: Color.h:222
Color with 8-bit blue, green, red and alpha channels
Definition: Color.h:242
T ValueType
The type of the channel values
Definition: Color.h:128
std::string toString() const
Get string representation
Definition: Color.h:160
T g
Green channel
Definition: Color.h:145
ColorRGBABase()=default
Constructor
T a
Alpha channel
Definition: Color.h:151
T r
Red channel
Definition: Color.h:142
ZIVID_CORE_EXPORT bool operator==(const ColorRGBABase &rhs) const
Check for equality
ZIVID_CORE_EXPORT bool operator!=(const ColorRGBABase &rhs) const
Check for inequality
T b
Blue channel
Definition: Color.h:148
ColorRGBABase(T red, T green, T blue, T alpha)
Constructor
Definition: Color.h:134
Color with 8-bit red, green, blue and alpha channels
Definition: Color.h:180