Open CASCADE Technology 7.9.1
Loading...
Searching...
No Matches
Image_ColorRGB Struct Reference

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

#include <Image_Color.hxx>

Public Types

typedef Standard_Byte ComponentType_t
 Component type.

Public Member Functions

Standard_Byte r () const
 Alias to 1st component (red intensity).
Standard_Byte g () const
 Alias to 2nd component (green intensity).
Standard_Byte b () const
 Alias to 3rd component (blue intensity).
Standard_Byter ()
 Alias to 1st component (red intensity).
Standard_Byteg ()
 Alias to 2nd component (green intensity).
Standard_Byteb ()
 Alias to 3rd component (blue intensity).

Static Public Member Functions

static Standard_Integer Length ()
 Returns the number of components.

Data Fields

Standard_Byte v [3]

Detailed Description

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

Member Typedef Documentation

◆ ComponentType_t

Member Function Documentation

◆ b() [1/2]

Standard_Byte & Image_ColorRGB::b ( )
inline

Alias to 3rd component (blue intensity).

◆ b() [2/2]

Standard_Byte Image_ColorRGB::b ( ) const
inline

Alias to 3rd component (blue intensity).

◆ g() [1/2]

Standard_Byte & Image_ColorRGB::g ( )
inline

Alias to 2nd component (green intensity).

◆ g() [2/2]

Standard_Byte Image_ColorRGB::g ( ) const
inline

Alias to 2nd component (green intensity).

◆ Length()

Standard_Integer Image_ColorRGB::Length ( )
inlinestatic

Returns the number of components.

◆ r() [1/2]

Standard_Byte & Image_ColorRGB::r ( )
inline

Alias to 1st component (red intensity).

◆ r() [2/2]

Standard_Byte Image_ColorRGB::r ( ) const
inline

Alias to 1st component (red intensity).

Field Documentation

◆ v

Standard_Byte Image_ColorRGB::v[3]

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