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

void SkBitmap::setIsOpaque ( bool  isOpaque  ) 

Specify if this bitmap's pixels are all opaque or not. Is only meaningful for configs that support per-pixel alpha (RGB32, A1, A8).

Definition at line 483 of file SkBitmap.cpp.

Referenced by copyTo(), SkCanvas::createDevice(), and SkWBMPImageDecoder::onDecode().

    /*  we record this regardless of fConfig, though it is ignored in
        isOpaque() for configs that can't support per-pixel alpha.
    if (isOpaque) {
        fFlags |= kImageIsOpaque_Flag;
    } else {
        fFlags &= ~kImageIsOpaque_Flag;

Generated by  Doxygen 1.6.0   Back to index