Home | History | Annotate | Download | only in pdf

Lines Matching defs:bitmap

46     // in pattern cell space (no scaling on the bitmap, though there may be
60 // For tiling modes, the bounds should be extended to include the bitmap,
61 // otherwise the bitmap gets clipped out and the shader is empty and awful.
63 // or not the main bitmap is in it.
79 // Translate the canvas so that the bitmap origin is at (0, 0).
85 // If the bitmap is out of bounds (i.e. clamp mode where we only see the
121 SkBitmap bitmap;
125 // to just make a bitmap from the image.
126 if (!SkPDFUtils::ToBitmap(image, &bitmap)) {
127 bitmap.allocN32Pixels(image->width(), image->height());
128 bitmap.eraseColor(0x00000000);
136 SkASSERT(!bitmap.drawsNothing());
141 paint.setColor(bitmap.getColor(0, 0));
148 paint.setColor(bitmap.getColor(bitmap.width() - 1, 0));
155 paint.setColor(bitmap.getColor(bitmap.width() - 1,
156 bitmap.height() - 1));
163 paint.setColor(bitmap.getColor(0, bitmap.height() - 1));
170 SkASSERT(!bitmap.drawsNothing());
171 SkIRect subset = SkIRect::MakeXYWH(0, 0, 1, bitmap.height());
174 SkAssertResult(bitmap.extractSubset(&left, subset));
191 subset.offset(bitmap.width() - 1, 0);
192 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));
230 subset.offset(0, bitmap.height() - 1);
231 SkAssertResult(bitmap.extractSubset(&bottom, subset));
254 // * allocate a surfaceBBox-sized bitmap
256 // * use the result as a bitmap shader
277 // want for sizing our bitmap, we need to map it into
284 // Clamp the bitmap size to about 1M pixels