![]() | Reference Manual - 1.7.7 | ||
|
DFBResult SetSrcColorMatrix ( | ||||
IDirectFBSurface | * | thiz, | ||
const s32 | * | matrix | ||
); |
Enable usage of this matrix by setting DSBLIT_SRC_COLORMATRIX via IDirectFBSurface::SetBlittingFlags().
The matrix consists of 4x3 fixed point 16.16 values. The order in the array is from left to right and from top to bottom.
All RGB values will be transformed:
R' = R * v0 + G * v1 + B * v2 + v3 G' = R * v4 + G * v5 + B * v6 + v7 B' = R * v8 + G * v9 + B * v10 + v11
![]() | This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License |