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

uint32_t * SkBitmap::getAddr32 ( int  x,
int  y 
) const [inline]

Returns the address of the pixel specified by x,y for 32bit pixels.

Definition at line 640 of file SkBitmap.h.

References kARGB_8888_Config.

                                                       {
    SkASSERT(fPixels);
    SkASSERT(fConfig == kARGB_8888_Config);
    SkASSERT((unsigned)x < fWidth && (unsigned)y < fHeight);
    return (uint32_t*)((char*)fPixels + y * fRowBytes + (x << 2));
}


Generated by  Doxygen 1.6.0   Back to index