Open CASCADE Technology  7.6.0.dev
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
Image_ColorBGRAF Struct Reference

POD structure for packed float BGRA color value (4 floats) More...

#include <Image_Color.hxx>

Public Types

typedef Standard_ShortReal ComponentType_t
 Component type. More...
 

Public Member Functions

Standard_ShortReal r () const
 Alias to 3rd component (red intensity). More...
 
Standard_ShortReal g () const
 Alias to 2nd component (green intensity). More...
 
Standard_ShortReal b () const
 Alias to 1st component (blue intensity). More...
 
Standard_ShortReal a () const
 Alias to 4th component (alpha value). More...
 
Standard_ShortRealr ()
 Alias to 3rd component (red intensity). More...
 
Standard_ShortRealg ()
 Alias to 2nd component (green intensity). More...
 
Standard_ShortRealb ()
 Alias to 1st component (blue intensity). More...
 
Standard_ShortReala ()
 Alias to 4th component (alpha value). More...
 

Static Public Member Functions

static Standard_Integer Length ()
 Returns the number of components. More...
 

Data Fields

Standard_ShortReal v [4]
 

Detailed Description

POD structure for packed float BGRA color value (4 floats)

Member Typedef Documentation

◆ ComponentType_t

Component type.

Member Function Documentation

◆ a() [1/2]

Standard_ShortReal& Image_ColorBGRAF::a ( )
inline

Alias to 4th component (alpha value).

◆ a() [2/2]

Standard_ShortReal Image_ColorBGRAF::a ( ) const
inline

Alias to 4th component (alpha value).

◆ b() [1/2]

Standard_ShortReal& Image_ColorBGRAF::b ( )
inline

Alias to 1st component (blue intensity).

◆ b() [2/2]

Standard_ShortReal Image_ColorBGRAF::b ( ) const
inline

Alias to 1st component (blue intensity).

◆ g() [1/2]

Standard_ShortReal& Image_ColorBGRAF::g ( )
inline

Alias to 2nd component (green intensity).

◆ g() [2/2]

Standard_ShortReal Image_ColorBGRAF::g ( ) const
inline

Alias to 2nd component (green intensity).

◆ Length()

static Standard_Integer Image_ColorBGRAF::Length ( void  )
inlinestatic

Returns the number of components.

◆ r() [1/2]

Standard_ShortReal& Image_ColorBGRAF::r ( )
inline

Alias to 3rd component (red intensity).

◆ r() [2/2]

Standard_ShortReal Image_ColorBGRAF::r ( ) const
inline

Alias to 3rd component (red intensity).

Field Documentation

◆ v

Standard_ShortReal Image_ColorBGRAF::v[4]

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