Zivid C++ API 2.13.1+18e79e79-1
Zivid::ColorBGRABase< T > Struct Template Reference

#include <Zivid/Color.h>

Public Types

using ValueType = T
 The type of the channel values.
 

Public Member Functions

 ColorBGRABase ()=default
 Constructor.
 
 ColorBGRABase (T blue, T green, T red, T alpha)
 Constructor.
 
ZIVID_CORE_EXPORT bool operator== (const ColorBGRABase &rhs) const
 Check for equality.
 
ZIVID_CORE_EXPORT bool operator!= (const ColorBGRABase &rhs) const
 Check for inequality.
 
std::string toString () const
 Get string representation.
 

Public Attributes

b
 Blue channel.
 
g
 Green channel.
 
r
 Red channel.
 
a
 Alpha channel.
 

Member Typedef Documentation

◆ ValueType

template<typename T >
using Zivid::ColorBGRABase< T >::ValueType = T

The type of the channel values.

Constructor & Destructor Documentation

◆ ColorBGRABase() [1/2]

template<typename T >
Zivid::ColorBGRABase< T >::ColorBGRABase ( )
default

Constructor.

◆ ColorBGRABase() [2/2]

template<typename T >
Zivid::ColorBGRABase< T >::ColorBGRABase ( T blue,
T green,
T red,
T alpha )
inline

Constructor.

Member Function Documentation

◆ operator!=()

template<typename T >
ZIVID_CORE_EXPORT bool Zivid::ColorBGRABase< T >::operator!= ( const ColorBGRABase< T > & rhs) const

Check for inequality.

◆ operator==()

template<typename T >
ZIVID_CORE_EXPORT bool Zivid::ColorBGRABase< T >::operator== ( const ColorBGRABase< T > & rhs) const

Check for equality.

◆ toString()

template<typename T >
std::string Zivid::ColorBGRABase< T >::toString ( ) const
inline

Get string representation.

Member Data Documentation

◆ a

template<typename T >
T Zivid::ColorBGRABase< T >::a

Alpha channel.

◆ b

template<typename T >
T Zivid::ColorBGRABase< T >::b

Blue channel.

◆ g

template<typename T >
T Zivid::ColorBGRABase< T >::g

Green channel.

◆ r

template<typename T >
T Zivid::ColorBGRABase< T >::r

Red channel.


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