Skip to content

Class RGBColor

ClassList > RGBColor

Inherits the following classes: Color

Public Functions

Type Name
RGBColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
RGBColor ()
unsigned char getAlpha () const
unsigned char getBlue () const
unsigned char getGreen () const
unsigned char getRed () const
const unsigned char & operator[] (size_t index) const
unsigned char & operator[] (size_t index)
virtual CMYKColor toCMYK () override const
virtual RGBColor toRGB () override const
cv::Scalar toScalar () const

Public Functions inherited from Color

See Color

Type Name
Color (const Color &) = default
Color () = default
Color & operator= (const Color &) = default
virtual CMYKColor toCMYK () const = 0
virtual RGBColor toRGB () const = 0
virtual ~Color () = default

Public Static Functions

Type Name
RGBColor FromCMYK (const CMYKColor & cmyk)

Public Functions Documentation

function RGBColor [1/2]

RGBColor::RGBColor (
    unsigned  char r,
    unsigned  char g,
    unsigned  char b,
    unsigned  char a=255
) 

function RGBColor [2/2]

inline RGBColor::RGBColor () 

function getAlpha

inline unsigned  char RGBColor::getAlpha () const

function getBlue

inline unsigned  char RGBColor::getBlue () const

function getGreen

inline unsigned  char RGBColor::getGreen () const

function getRed

inline unsigned  char RGBColor::getRed () const

function operator[]

inline const  unsigned  char & RGBColor::operator[] (
    size_t index
) const

function operator[]

inline unsigned  char & RGBColor::operator[] (
    size_t index
) 

function toCMYK

virtual CMYKColor RGBColor::toCMYK () override const

Implements Color::toCMYK


function toRGB

inline virtual RGBColor RGBColor::toRGB () override const

Implements Color::toRGB


function toScalar

cv::Scalar RGBColor::toScalar () const

Public Static Functions Documentation

function FromCMYK

static RGBColor RGBColor::FromCMYK (
    const  CMYKColor & cmyk
) 

Friends Documentation

friend operator<<

inline std::ostream & RGBColor::operator<< (
    std::ostream & os,
    const  RGBColor & c
) 


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/isom/colors.hpp