Home | History | Annotate | Download | only in samplecode

Lines Matching refs:bm

24     SkBitmap bm;
25 bm.allocPixels(SkImageInfo::Make(1, 1, kIndex_8_SkColorType,
30 bm.lockPixels();
31 for (int y = 0; y < bm.height(); y++) {
32 uint8_t* p = bm.getAddr8(0, y);
33 for (int x = 0; x < bm.width(); x++) {
37 bm.unlockPixels();
38 return bm;
58 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) {
59 SkAutoLockPixels alp(*bm); // needed for ctable
60 bm->setAlphaType(isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType);