|
CFx SDK Documentation 2026 SP0
|
#include <GiPalette.h>
Public Member Functions | |
| OdGiIntRGB (OdInt32 _r, OdInt32 _g, OdInt32 _b) | |
| OdGiIntRGB () | |
| OdGiIntRGB (ODCOLORREF cref) | |
| OdInt32 | red () const |
| OdInt32 | green () const |
| OdInt32 | blue () const |
| void | setRed (OdInt32 _r) |
| void | setGreen (OdInt32 _g) |
| void | setBlue (OdInt32 _b) |
| void | setRGB (OdInt32 _r, OdInt32 _g, OdInt32 _b) |
| void | setColor (ODCOLORREF cref) |
| ODCOLORREF | color () const |
Public Attributes | |
| OdInt32 | r |
| OdInt32 | g |
| OdInt32 | b |
This class represents RGB color components as set of 32bit integers. Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 38 of file GiPalette.h.
Constructor for the OdGiIntRGB structure.
| _r | [in] Red component of the color. |
| _g | [in] Green component of the color. |
| _b | [in] Blue component of the color. |
Definition at line 54 of file GiPalette.h.
|
inline |
Default constructor for the OdGiIntRGB structure.
Definition at line 61 of file GiPalette.h.
|
inline |
Constructor for the OdGiIntRGB structure.
| cref | [in] Color as ODCOLORREF definition. |
Definition at line 71 of file GiPalette.h.
|
inline |
Returns blue color component.
Definition at line 87 of file GiPalette.h.
|
inline |
Returns color as ODCOLORREF.
Definition at line 123 of file GiPalette.h.
|
inline |
Returns green color component.
Definition at line 83 of file GiPalette.h.
|
inline |
Returns red color component.
Definition at line 79 of file GiPalette.h.
Resets blue color component.
| _b | [in] New value for blue color component. |
Definition at line 103 of file GiPalette.h.
|
inline |
Resets all color components from ODCOLORREF.
| cref | [in] Input color. |
Definition at line 116 of file GiPalette.h.
Resets green color component.
| _g | [in] New value for green color component. |
Definition at line 98 of file GiPalette.h.
Resets red color component.
| _r | [in] New value for red color component. |
Definition at line 93 of file GiPalette.h.
Resets red, green and blue color components together.
| _r | [in] New value for red color component. |
| _g | [in] New value for green color component. |
| _b | [in] New value for blue color component. |
Definition at line 110 of file GiPalette.h.
| OdInt32 OdGiIntRGB::b |
Blue component of the color.
Definition at line 45 of file GiPalette.h.
| OdInt32 OdGiIntRGB::g |
Green component of the color.
Definition at line 43 of file GiPalette.h.
| OdInt32 OdGiIntRGB::r |
Red component of the color.
Definition at line 41 of file GiPalette.h.