Lines Matching refs:picture

23  * A picture records drawing calls (via the canvas returned by beginRecording)
24 * and can then play them back (via picture.draw(canvas) or canvas.drawPicture).
25 * The picture's contents can also be written to a stream, and then later
26 * restored to a new picture (via writeToStream / createFromStream). For most
27 * content (esp. text, lines, rectangles), drawing a sequence from a picture can
28 * be faster than the equivalent API calls, since the picture performs its
47 * Create a picture by making a copy of what has already been recorded in
49 * changes will not be reflected in this picture.
56 * To record a picture, call beginRecording() and then draw into the Canvas
69 * Call endRecording when the picture is built. After this call, the picture
82 * Get the width of the picture as passed to beginRecording. This
83 * does not reflect (per se) the content of the picture.
88 * Get the height of the picture as passed to beginRecording. This
89 * does not reflect (per se) the content of the picture.
94 * Draw this picture on the canvas. The picture may have the side effect
97 * @param canvas The picture is drawn to this canvas
107 * Create a new picture (already recorded) from the data in the stream. This
110 * <strong>Note:</strong> a picture created from an input stream cannot be
120 * Write the picture contents to a stream. The data can be used to recreate
121 * the picture in this or another process by calling createFromStream.
123 * <strong>Note:</strong> a picture created from an input stream cannot be
159 // return empty picture if src is 0, or a copy of the native src
182 "Cannot call setBitmap on a picture canvas");
186 public void drawPicture(Picture picture) {
187 if (mPicture == picture) {
189 "Cannot draw a picture into its recording canvas");
191 super.drawPicture(picture);