OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Image_ColorRGBA Struct Reference

    POD structure for packed RGBA color value (4 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_t a () const
     Alias to 4th component (alpha value).
    uint8_t & r ()
     Alias to 1st component (red intensity).
    uint8_t & g ()
     Alias to 2nd component (green intensity).
    uint8_t & b ()
     Alias to 3rd component (blue intensity).
    uint8_t & a ()
     Alias to 4th component (alpha value).

    Static Public Member Functions

    static int Length ()
     Returns the number of components.

    Data Fields

    uint8_t v [4]

    Detailed Description

    POD structure for packed RGBA color value (4 bytes).

    Member Typedef Documentation

    ◆ ComponentType_t

    Component type.

    Member Function Documentation

    ◆ a() [1/2]

    uint8_t & Image_ColorRGBA::a ( )
    inline

    Alias to 4th component (alpha value).

    ◆ a() [2/2]

    uint8_t Image_ColorRGBA::a ( ) const
    inline

    Alias to 4th component (alpha value).

    ◆ b() [1/2]

    uint8_t & Image_ColorRGBA::b ( )
    inline

    Alias to 3rd component (blue intensity).

    ◆ b() [2/2]

    uint8_t Image_ColorRGBA::b ( ) const
    inline

    Alias to 3rd component (blue intensity).

    ◆ g() [1/2]

    uint8_t & Image_ColorRGBA::g ( )
    inline

    Alias to 2nd component (green intensity).

    ◆ g() [2/2]

    uint8_t Image_ColorRGBA::g ( ) const
    inline

    Alias to 2nd component (green intensity).

    ◆ Length()

    int Image_ColorRGBA::Length ( )
    inlinestatic

    Returns the number of components.

    ◆ r() [1/2]

    uint8_t & Image_ColorRGBA::r ( )
    inline

    Alias to 1st component (red intensity).

    ◆ r() [2/2]

    uint8_t Image_ColorRGBA::r ( ) const
    inline

    Alias to 1st component (red intensity).

    Field Documentation

    ◆ v

    uint8_t Image_ColorRGBA::v[4]

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