Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

void SkPaint::setColor ( SkColor  color  ) 

Set the paint's color. Note that the color is a 32bit value containing alpha as well as r,g,b. This 32bit value is not premultiplied, meaning that its alpha can be any value, regardless of the values of r,g,b.

Parameters:
color The new color (including alpha) to set in the paint.

Definition at line 203 of file SkPaint.cpp.

Referenced by SkCanvas::drawColor(), SkCanvas::drawPoint(), SkBlurDrawLooper::next(), and SkBlurDrawLooper::restore().

{
    fColor = color;
}


Generated by  Doxygen 1.6.0   Back to index