Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
Image_ColorRGB Struct Reference

POD structure for packed RGB color value (3 bytes) More...

#include <Image_Color.hxx>

Public Types

typedef uint8_t ComponentType_t
 Component type.
 

Public Member Functions

uint8_t r () const
 Alias to 1st component (red intensity).
 
uint8_t g () const
 Alias to 2nd component (green intensity).
 
uint8_t b () const
 Alias to 3rd component (blue intensity).
 
uint8_tr ()
 Alias to 1st component (red intensity).
 
uint8_tg ()
 Alias to 2nd component (green intensity).
 
uint8_tb ()
 Alias to 3rd component (blue intensity).
 

Static Public Member Functions

static int Length ()
 Returns the number of components.
 

Data Fields

uint8_t v [3]
 

Detailed Description

POD structure for packed RGB color value (3 bytes)

Member Typedef Documentation

◆ ComponentType_t

Component type.

Member Function Documentation

◆ b() [1/2]

uint8_t & Image_ColorRGB::b ( )
inline

Alias to 3rd component (blue intensity).

◆ b() [2/2]

uint8_t Image_ColorRGB::b ( ) const
inline

Alias to 3rd component (blue intensity).

◆ g() [1/2]

uint8_t & Image_ColorRGB::g ( )
inline

Alias to 2nd component (green intensity).

◆ g() [2/2]

uint8_t Image_ColorRGB::g ( ) const
inline

Alias to 2nd component (green intensity).

◆ Length()

static int Image_ColorRGB::Length ( )
inlinestatic

Returns the number of components.

◆ r() [1/2]

uint8_t & Image_ColorRGB::r ( )
inline

Alias to 1st component (red intensity).

◆ r() [2/2]

uint8_t Image_ColorRGB::r ( ) const
inline

Alias to 1st component (red intensity).

Field Documentation

◆ v

uint8_t Image_ColorRGB::v[3]

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