CFx SDK Documentation  2022 SP0
Public Member Functions | List of all members
OdGiPixelBGRA32 Class Reference

#include <GiImage.h>

Public Member Functions

 OdGiPixelBGRA32 ()
 
 OdGiPixelBGRA32 (OdUInt32 bgra)
 
 OdGiPixelBGRA32 (OdUInt8 blue, OdUInt8 green, OdUInt8 red, OdUInt8 alpha)
 
OdUInt32 getBGRA () const
 
OdUInt32 getRGBA () const
 
OdUInt8 blue () const
 
OdUInt8 green () const
 
OdUInt8 red () const
 
OdUInt8 alpha () const
 
void setBGRA (OdUInt32 bgra)
 
void setBGRA (OdUInt8 blue, OdUInt8 green, OdUInt8 red, OdUInt8 alpha)
 
void setRGBA (OdUInt32 rgba)
 
void setRGBA (OdUInt8 red, OdUInt8 green, OdUInt8 blue, OdUInt8 alpha)
 
void setBlue (OdUInt8 blue)
 
void setGreen (OdUInt8 green)
 
void setRed (OdUInt8 red)
 
void setAlpha (OdUInt8 alpha)
 

Detailed Description

This class defines pixel color parameters in RGB format, which stores an integer for red, green, and blue values, and also includes a value for alpha-shading.

Corresponding C++ library: TD_Gi

<group OdGi_Classes>

Definition at line 43 of file GiImage.h.

Constructor & Destructor Documentation

◆ OdGiPixelBGRA32() [1/3]

OdGiPixelBGRA32::OdGiPixelBGRA32 ( )
inline

Definition at line 46 of file GiImage.h.

◆ OdGiPixelBGRA32() [2/3]

OdGiPixelBGRA32::OdGiPixelBGRA32 ( OdUInt32  bgra)
inline

Definition at line 51 of file GiImage.h.

◆ OdGiPixelBGRA32() [3/3]

OdGiPixelBGRA32::OdGiPixelBGRA32 ( OdUInt8  blue,
OdUInt8  green,
OdUInt8  red,
OdUInt8  alpha 
)
inline

Definition at line 56 of file GiImage.h.

Member Function Documentation

◆ alpha()

OdUInt8 OdGiPixelBGRA32::alpha ( ) const
inline

Gets the alpha shading value of the color.

Definition at line 129 of file GiImage.h.

◆ blue()

OdUInt8 OdGiPixelBGRA32::blue ( ) const
inline

Gets the blue value of the color.

Definition at line 105 of file GiImage.h.

◆ getBGRA()

OdUInt32 OdGiPixelBGRA32::getBGRA ( ) const
inline

Gets the color values in blue, green, red, alpha order.

Definition at line 89 of file GiImage.h.

◆ getRGBA()

OdUInt32 OdGiPixelBGRA32::getRGBA ( ) const
inline

Gets the color values in red, green, blue, alpha order.

Definition at line 97 of file GiImage.h.

◆ green()

OdUInt8 OdGiPixelBGRA32::green ( ) const
inline

Gets the green value of the color.

Definition at line 113 of file GiImage.h.

◆ red()

OdUInt8 OdGiPixelBGRA32::red ( ) const
inline

Gets the red value of the color.

Definition at line 121 of file GiImage.h.

◆ setAlpha()

void OdGiPixelBGRA32::setAlpha ( OdUInt8  alpha)
inline

Sets the alpha-shading value of a color.

Definition at line 199 of file GiImage.h.

◆ setBGRA() [1/2]

void OdGiPixelBGRA32::setBGRA ( OdUInt32  bgra)
inline

Sets the color values in blue, green, red, alpha order.

Definition at line 137 of file GiImage.h.

◆ setBGRA() [2/2]

void OdGiPixelBGRA32::setBGRA ( OdUInt8  blue,
OdUInt8  green,
OdUInt8  red,
OdUInt8  alpha 
)
inline

Sets the color values in blue, green, red, alpha order.

Definition at line 145 of file GiImage.h.

◆ setBlue()

void OdGiPixelBGRA32::setBlue ( OdUInt8  blue)
inline

Sets the blue value of a color.

Definition at line 175 of file GiImage.h.

◆ setGreen()

void OdGiPixelBGRA32::setGreen ( OdUInt8  green)
inline

Sets the green value of a color.

Definition at line 183 of file GiImage.h.

◆ setRed()

void OdGiPixelBGRA32::setRed ( OdUInt8  red)
inline

Sets the red value of a color.

Definition at line 191 of file GiImage.h.

◆ setRGBA() [1/2]

void OdGiPixelBGRA32::setRGBA ( OdUInt32  rgba)
inline

Sets the color values in red, green, blue, alpha order.

Definition at line 156 of file GiImage.h.

◆ setRGBA() [2/2]

void OdGiPixelBGRA32::setRGBA ( OdUInt8  red,
OdUInt8  green,
OdUInt8  blue,
OdUInt8  alpha 
)
inline

Sets the color values in red, green, blue, alpha order.

Definition at line 164 of file GiImage.h.


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