Lines Matching defs:bitmap
108 SkBitmap bitmap;
109 bitmap.setInfo(SkImageInfo::MakeUnknown(width, height));
110 return bitmap;
630 const SkBitmap& bitmap,
636 if (!SkImageEncoder::EncodeStream(&write, bitmap,
638 HRM(E_FAIL, "Unable to encode bitmap as png.");
667 static_cast<FLOAT>(bitmap.width()), static_cast<FLOAT>(bitmap.height())
687 const SkScalar bWidth = SkIntToScalar(bitmap.width());
688 const SkScalar bHeight = SkIntToScalar(bitmap.height());
717 1.0, static_cast<FLOAT>(bitmap.height()),
725 bitmap.width() - 1.0f, 0.0f,
726 1.0f, static_cast<FLOAT>(bitmap.height()),
738 static_cast<FLOAT>(bitmap.width()), 1.0,
746 0.0f, bitmap.height() - 1.0f,
747 static_cast<FLOAT>(bitmap.width()), 1.0f,
758 SkAutoLockPixels alp(bitmap);
760 const SkColor tlColor = bitmap.getColor(0,0);
764 const SkColor trColor = bitmap.getColor(bitmap.width()-1,0);
768 const SkColor brColor = bitmap.getColor(bitmap.width()-1,
769 bitmap.height()-1);
773 const SkColor blColor = bitmap.getColor(0,bitmap.height()-1);
791 bound.height = static_cast<FLOAT>(bitmap.height());
795 bound.width = static_cast<FLOAT>(bitmap.width());
1799 void SkXPSDevice::drawBitmap(const SkDraw& d, const SkBitmap& bitmap,
1806 srcRect.set(0, 0, bitmap.width(), bitmap.height());
1811 "Could not create path for bitmap.");
1816 "Could not create geometry for bitmap.");
1820 "Could not set the geometry for bitmap.");
1825 "Could not get the figures for bitmap.");
1834 "Could not set transform for bitmap.");
1836 //TODO: perspective that bitmap!
1846 HRV(this->createXpsImageBrush(bitmap,
1852 "Could not set bitmap brush.");
1859 "Could not add bitmap figure.");
1864 "Could not get current visuals for bitmap");
1866 "Could not add bitmap to current visuals.");
1871 void SkXPSDevice::drawSprite(const SkDraw&, const SkBitmap& bitmap,