Chromium Code Reviews| Index: include/core/SkImage.h |
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
| index c2ee5093fb679898c7c94d37814db7a1dc9d3049..fd07709e29e6a9b2c198c6b7efdfd5741e6d3d16 100644 |
| --- a/include/core/SkImage.h |
| +++ b/include/core/SkImage.h |
| @@ -84,6 +84,13 @@ public: |
| void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*); |
| /** |
| + * Draw the image, cropped to the src rect, to the dst rect of a canvas. |
| + * If src is larger than the bounds of the image, the rest of the image is |
| + * filled with transparent black pixels. |
|
reed1
2013/07/19 19:32:30
// See SkCanvas::drawBitmapRectToRect for similar
|
| + */ |
| + void draw(SkCanvas*, const SkRect* src, const SkRect& dst, const SkPaint*); |
| + |
| + /** |
| * Encode the image's pixels and return the result as a new SkData, which |
| * the caller must manage (i.e. call unref() when they are done). |
| * |