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

static SkColor SkColorSetARGB ( U8CPU  a,
U8CPU  r,
U8CPU  g,
U8CPU  b 
) [inline, static]

Return a SkColor value from 8 bit component values

Definition at line 39 of file SkColor.h.

Referenced by SkPaint::setAlpha(), SkPaint::setARGB(), and SkHSVToColor().

{
    SkASSERT(a <= 255 && r <= 255 && g <= 255 && b <= 255);

    return (a << 24) | (r << 16) | (g << 8) | (b << 0);
}


Generated by  Doxygen 1.6.0   Back to index