diff options
author | 2011-11-02 20:10:48 +0000 | |
---|---|---|
committer | 2011-11-02 20:10:48 +0000 | |
commit | daba14b7d4fc96b915c45d82713b22729c0d0f37 (patch) | |
tree | bd57132a2ccdbd83b789eab01e1f6313ce30aae2 /include/core/SkCanvas.h | |
parent | 910267dde2d036b6298f62943f019bda3d662eb2 (diff) |
Line-endings only change (some windows line-endings snuck in)
git-svn-id: http://skia.googlecode.com/svn/trunk@2588 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r-- | include/core/SkCanvas.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 90bc1f433e..00fdfbee58 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -105,35 +105,35 @@ public: /////////////////////////////////////////////////////////////////////////// - /**
- * On success (returns true), copy the canvas pixels into the bitmap.
- * On failure, the bitmap parameter is left unchanged and false is
- * returned.
- *
- * If the canvas is backed by a non-raster device (e.g. PDF) then
- * readPixels will fail.
- *
- * If the bitmap has pixels already allocated, the canvas pixels will be
- * written there. If not, bitmap->allocPixels() will be called
- * automatically. If the bitmap is backed by a texture readPixels will
- * fail.
- *
- * The canvas' pixels are converted to the bitmap's config. The only
- * supported config is kARGB_8888_Config, though this may be relaxed in
- * future.
- *
- * The actual pixels written is the intersection of the canvas' bounds, and
- * the rectangle formed by the bitmap's width,height and the specified x,y.
- * If bitmap pixels extend outside of that intersection, they will not be
- * modified.
- *
- * Example that reads the entire canvas into a bitmap:
- * SkISize size = canvas->getDeviceSize();
- * bitmap->setConfig(SkBitmap::kARGB_8888_Config, size.fWidth,
- * size.fHeight);
- * if (canvas->readPixels(bitmap, 0, 0)) {
- * // use the pixels
- * }
+ /** + * On success (returns true), copy the canvas pixels into the bitmap. + * On failure, the bitmap parameter is left unchanged and false is + * returned. + * + * If the canvas is backed by a non-raster device (e.g. PDF) then + * readPixels will fail. + * + * If the bitmap has pixels already allocated, the canvas pixels will be + * written there. If not, bitmap->allocPixels() will be called + * automatically. If the bitmap is backed by a texture readPixels will + * fail. + * + * The canvas' pixels are converted to the bitmap's config. The only + * supported config is kARGB_8888_Config, though this may be relaxed in + * future. + * + * The actual pixels written is the intersection of the canvas' bounds, and + * the rectangle formed by the bitmap's width,height and the specified x,y. + * If bitmap pixels extend outside of that intersection, they will not be + * modified. + * + * Example that reads the entire canvas into a bitmap: + * SkISize size = canvas->getDeviceSize(); + * bitmap->setConfig(SkBitmap::kARGB_8888_Config, size.fWidth, + * size.fHeight); + * if (canvas->readPixels(bitmap, 0, 0)) { + * // use the pixels + * } */ bool readPixels(SkBitmap* bitmap, int x, int y); |