Lines Matching refs:picture

26  * drawing a sequence from a picture can be faster than the equivalent API
27 * calls, since the picture performs its playback without incurring any
30 * <p class="note"><strong>Note:</strong> Prior to API level 23 a picture cannot
40 * Creates an empty picture that is ready to record.
47 * Create a picture by making a copy of what has already been recorded in
49 * changes will not be reflected in this picture.
73 * To record a picture, call beginRecording() and then draw into the Canvas
87 * Call endRecording when the picture is built. After this call, the picture
100 * Get the width of the picture as passed to beginRecording. This
101 * does not reflect (per se) the content of the picture.
108 * Get the height of the picture as passed to beginRecording. This
109 * does not reflect (per se) the content of the picture.
116 * Draw this picture on the canvas.
120 * if this picture had imbalanced saves/restores.
123 * <strong>Note:</strong> This forces the picture to internally call
126 * @param canvas The picture is drawn to this canvas
136 * Create a new picture (already recorded) from the data in the stream. This
143 * instead draw the picture into a Bitmap from which you can persist it as
152 * Write the picture contents to a stream. The data can be used to recreate
153 * the picture in this or another process by calling createFromStream(...)
158 * @deprecated The recommended alternative is to draw the picture into a
173 // return empty picture if src is 0, or a copy of the native src
195 throw new RuntimeException("Cannot call setBitmap on a picture canvas");
199 public void drawPicture(Picture picture) {
200 if (mPicture == picture) {
201 throw new RuntimeException("Cannot draw a picture into its recording canvas");
203 super.drawPicture(picture);