Lines Matching refs:bitmap
32 SkBitmap bitmap;
33 if (!SkPDFUtils::ToBitmap(image, &bitmap)) {
34 bitmap.allocN32Pixels(image->width(), image->height());
35 bitmap.eraseColor(0x00000000);
37 return bitmap;
57 const SkBitmap& bitmap, int x, int y, float alpha) {
60 SkColor4f color = SkColor4f::FromColor(bitmap.getColor(x, y));
82 // in pattern cell space (no scaling on the bitmap, though there may be
95 // For tiling modes, the bounds should be extended to include the bitmap,
96 // otherwise the bitmap gets clipped out and the shader is empty and awful.
98 // or not the main bitmap is in it.
112 // Translate the canvas so that the bitmap origin is at (0, 0).
118 // If the bitmap is out of bounds (i.e. clamp mode where we only see the
139 SkBitmap bitmap;
142 // to just make a bitmap from the image.
143 bitmap = to_bitmap(image);
149 SkASSERT(!bitmap.drawsNothing());
152 bitmap, 0, 0, paintColor.fA);
155 bitmap, bitmap.width() - 1, 0, paintColor.fA);
158 bitmap, bitmap.width() - 1, bitmap.height() - 1, paintColor.fA);
161 bitmap, 0, bitmap.height() - 1, paintColor.fA);
166 SkASSERT(!bitmap.drawsNothing());
167 SkIRect subset = SkIRect::MakeXYWH(0, 0, 1, bitmap.height());
170 SkAssertResult(bitmap.extractSubset(&left, subset));
185 subset.offset(bitmap.width() - 1, 0);
186 SkAssertResult(bitmap.extractSubset(&right, subset));
209 SkASSERT(!bitmap.drawsNothing());
210 SkIRect subset = SkIRect::MakeXYWH(0, 0, bitmap.width(), 1);
213 SkAssertResult(bitmap.extractSubset(&top, subset));
228 subset.offset(0, bitmap.height() - 1);
229 SkAssertResult(bitmap.extractSubset(&bottom, subset));
260 // * allocate a surfaceBBox-sized bitmap
262 // * use the result as a bitmap shader
276 // want for sizing our bitmap, we need to map it into
283 // Clamp the bitmap size to about 1M pixels