#include <omw/color.h>
More...
#include <omw/color.h>
◆ alphaComposit() [1/2]
- Returns
- Alpha composit of A over B
If one of the colors is invalid, the return value is also invalid. However all color values are computed anyway.
◆ alphaComposit() [2/2]
int32_t omw::alphaComposit |
( |
int32_t |
a_ACCC, |
|
|
int32_t |
b_ACCC |
|
) |
| |
- Returns
- Alpha composit of A over B
Format: 0xAACCCCCC
where CCCCCC is any combination of RR, GG and BB, and has to be consistent for input and return values.
◆ alphaComposit_apply() [1/2]
Writes the alpha composit of A over B to B.
- Parameters
-
If one of the colors is invalid, the result is also invalid. However all color values are computed anyway.
◆ alphaComposit_apply() [2/2]
void omw::alphaComposit_apply |
( |
int32_t |
a_ACCC, |
|
|
int32_t & |
b_ACCC |
|
) |
| |
Writes the alpha composit of A over B to B.
- Parameters
-
Format: 0xAACCCCCC
where CCCCCC is any combination of RR, GG and BB, and has to be consistent for input and output values.
◆ fromWinColor()
Converts from a Windows API color.
Format: 0xBBGGRR
See COLORREF
◆ fromWxColor()