| Reference Manual - 1.4.13
IDirectFBSurface | SetColor

#### Set the color used for drawing/text functions or alpha/color modulation (blitting functions).

DFBResult SetColor (
| IDirectFBSurface |  | * | thiz,
| u8 |  |  | r,
| u8 |  |  | g,
| u8 |  |  | b,
| u8 |  |  | a
);

If you are not using the alpha value it should be set to 0xff to ensure visibility when the code is ported to or used for surfaces with an alpha channel.

This method should be avoided for surfaces with an indexed pixelformat, e.g. DSPF_LUT8, otherwise an expensive search in the color/alpha lookup table occurs.

| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License