|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CBGRA Class ReferenceClass pixel BGRA, Windows style pixel.
More...
#include <rgba.h>
List of all members.
Detailed Description
Class pixel BGRA, Windows style pixel.
-
Author(s):
-
Cyril Corvazier , Nevrax France
-
Date:
-
2000
Definition at line 215 of file rgba.h.
Constructor & Destructor Documentation
NLMISC::CBGRA::CBGRA (
|
) [inline]
|
|
|
Default constructor. do nothing.
Definition at line 220 of file rgba.h. |
NLMISC::CBGRA::CBGRA (
|
const CRGBA & c ) [inline]
|
|
|
Constructor from a CRGBA.
-
Parameters:
-
Definition at line 226 of file rgba.h. |
|
Constructor.
-
Parameters:
-
r
|
Red componant. |
g
|
Green componant. |
b
|
Blue componant. |
a
|
Alpha componant. |
Definition at line 241 of file rgba.h. |
Member Function Documentation
void NLMISC::CBGRA::blendFromui (
|
CBGRA & c0,
|
|
CBGRA & c1,
|
|
uint coef )
|
|
|
Blend two colors.
-
Parameters:
-
c0
|
Color 0. |
c1
|
Color 1. |
factor
|
Blend factor. 0~255. 0 return c0 and 255 return c1. |
Definition at line 94 of file rgba.cpp. |
uint NLMISC::CBGRA::getPacked (
|
) const [inline]
|
|
|
Return a packed pixel.
Definition at line 255 of file rgba.h. |
NLMISC::CBGRA::operator CRGBA (
|
) [inline]
|
|
bool NLMISC::CBGRA::operator< (
|
const CBGRA & c ) const [inline]
|
|
|
Comparison operator.
Definition at line 263 of file rgba.h. |
bool NLMISC::CBGRA::operator== (
|
const CBGRA & c ) const [inline]
|
|
|
Equality operator.
Definition at line 271 of file rgba.h. |
|
Serialisation.
-
Parameters:
-
f
|
Stream used for serialisation. |
Definition at line 78 of file rgba.cpp. |
|
Set colors.
-
Parameters:
-
r
|
Red componant. |
g
|
Green componant. |
b
|
Blue componant. |
a
|
Alpha componant. |
Definition at line 86 of file rgba.cpp. |
Member Data Documentation
|
Alpha componant.
Definition at line 306 of file rgba.h. |
|
Blue componant.
Definition at line 300 of file rgba.h. |
|
Green componant.
Definition at line 302 of file rgba.h. |
|
Red componant.
Definition at line 304 of file rgba.h. |
The documentation for this class was generated from the following files:
|
|