Lines Matching defs: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
37 * Creates an empty picture that is ready to record.
44 * Create a picture by making a copy of what has already been recorded in
46 * changes will not be reflected in this picture.
70 * To record a picture, call beginRecording() and then draw into the Canvas
84 * Call endRecording when the picture is built. After this call, the picture
97 * Get the width of the picture as passed to beginRecording. This
98 * does not reflect (per se) the content of the picture.
105 * Get the height of the picture as passed to beginRecording. This
106 * does not reflect (per se) the content of the picture.
113 * Draw this picture on the canvas.
117 * if this picture had imbalanced saves/restores.
120 * <strong>Note:</strong> This forces the picture to internally call
123 * @param canvas The picture is drawn to this canvas
133 * Create a new picture (already recorded) from the data in the stream. This
139 * <strong>Note:</strong> Prior to API level 23 a picture created from an
144 * instead draw the picture into a Bitmap from which you can persist it as
153 * Write the picture contents to a stream. The data can be used to recreate
154 * the picture in this or another process by calling createFromStream(...)
159 * <strong>Note:</strong> Prior to API level 23 a picture created from an
163 * @deprecated The recommended alternative is to draw the picture into a
178 // return empty picture if src is 0, or a copy of the native src
200 throw new RuntimeException("Cannot call setBitmap on a picture canvas");
204 public void drawPicture(Picture picture) {
205 if (mPicture == picture) {
206 throw new RuntimeException("Cannot draw a picture into its recording canvas");
208 super.drawPicture(picture);