Lines Matching refs:bitmap
40 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) {
41 switch (bitmap.getConfig()) {
43 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y));
46 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y));
50 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y)));
53 SkColorTable* ctable = bitmap.getColorTable();
55 (*ctable)[*bitmap.getAddr8(x, y)]);
71 const SkBitmap& bitmap, const SkPaint& paint,
80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) {
91 canvas->drawBitmapRect(bitmap, &src, dst, &paint);
106 const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
122 SkNinePatch::DrawMesh(canvas, bounds, bitmap,
147 ALOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height());
154 bitmap.width() == 0 || bitmap.height() == 0 ||
165 SkAutoLockPixels alp(bitmap);
167 if (bitmap.getPixels() == NULL)
186 const int bitmapWidth = bitmap.width();
187 const int bitmapHeight = bitmap.height();
205 bitmap.width(), bitmap.height(),
216 // The last row always ends with the bottom being bitmap.height and the top
217 // being either yDivs[numYDivs-2] (if yDivs[numYDivs-1]=bitmap.height) or
316 drawStretchyPatch(canvas, src, dst, bitmap, *paint, initColor,