Home | History | Annotate | Download | only in core

Lines Matching refs:bitmap

32     A Canvas encapsulates all of the state about drawing into a device (bitmap).
55 /** Deprecated - Construct a canvas with the specified bitmap to draw into.
56 @param bitmap Specifies a bitmap for the canvas to draw into. Its
59 explicit SkCanvas(const SkBitmap& bitmap);
77 the bitmap of the pixels that the canvas draws into. The reference count
101 SkDevice* setBitmapDevice(const SkBitmap& bitmap);
149 * On success (returns true), copy the canvas pixels into the bitmap.
150 * On failure, the bitmap parameter is left unchanged and false is
153 * The canvas' pixels are converted to the bitmap's config. The only
159 * If the bitmap has pixels already allocated, the canvas pixels will be
160 * written there. If not, bitmap->allocPixels() will be called
161 * automatically. If the bitmap is backed by a texture readPixels will
165 * the rectangle formed by the bitmap's width,height and the specified x,y.
166 * If bitmap pixels extend outside of that intersection, they will not be
172 * * If bitmap is texture-backed then readPixels will fail. (This may be
175 * Example that reads the entire canvas into a bitmap using the native
178 * bitmap->setConfig(SkBitmap::kARGB_8888_Config, size.fWidth,
180 * if (canvas->readPixels(bitmap, 0, 0)) {
184 bool readPixels(SkBitmap* bitmap,
190 * on it. The bitmap is resized to the intersection of srcRect and the
191 * canvas bounds. New pixels are always allocated on success. Bitmap is
194 bool readPixels(const SkIRect& srcRect, SkBitmap* bitmap);
197 * Similar to draw sprite, this method will copy the pixels in bitmap onto
201 * Currently if bitmap is backed by a texture this is a no-op. This may be
204 * If the bitmap has config kARGB_8888_Config then the config8888 param
205 * will determines how the pixel valuess are intepreted. If the bitmap is
211 void writePixels(const SkBitmap& bitmap,
246 offscreen bitmap. All drawing calls are directed there, and only when
262 offscreen bitmap. All drawing calls are directed there, and only when
457 /** Fill the entire canvas' bitmap (restricted to the current clip) with the
468 /** Fill the entire canvas' bitmap (restricted to the current clip) with the
493 * Fill the entire canvas' bitmap (restricted to the current clip) with the
635 /** Draw the specified bitmap, with its top/left corner at (x,y), using the
638 bitmap's original width/height, then the bitmap will be drawn as if it
641 @param bitmap The bitmap to be drawn
642 @param left The position of the left side of the bitmap being drawn
643 @param top The position of the top side of the bitmap being drawn
644 @param paint The paint used to draw the bitmap, or NULL
646 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
649 /** Draw the specified bitmap, with the specified matrix applied (before the
651 @param bitmap The bitmap to be drawn
652 @param src Optional: specify the subset of the bitmap to be drawn
655 @param paint The paint used to draw the bitmap, or NULL
657 virtual void drawBitmapRect(const SkBitmap& bitmap, const SkIRect* src,
660 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
664 * Draw the bitmap stretched differentially to fit into dst.
665 * center is a rect within the bitmap, and logically divides the bitmap
667 * bitmap is the "center", then the center-rect should be [2, 2, 3, 3].
669 * If the dst is >= the bitmap size, then...
673 * Else, for each axis where dst < bitmap,
677 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
680 /** Draw the specified bitmap, with its top/left corner at (x,y),
683 bitmap's original width/height, then the bitmap will be drawn as if it
686 @param bitmap The bitmap to be drawn
687 @param left The position of the left side of the bitmap being drawn
688 @param top The position of the top side of the bitmap being drawn
689 @param paint The paint used to draw the bitmap, or NULL
691 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
984 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkIRect* src,
986 void internalDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,