Lines Matching refs:picture
1202 * Save the canvas state, draw the picture, and restore the canvas state.
1203 * This differs from picture.draw(canvas), which does not perform any
1207 * <strong>Note:</strong> This forces the picture to internally call
1210 * @param picture The picture to be drawn
1212 public void drawPicture(@NonNull Picture picture) {
1213 picture.endRecording();
1215 picture.draw(this);
1220 * Draw the picture, stretched to fit into the dst rectangle.
1222 public void drawPicture(@NonNull Picture picture, @NonNull RectF dst) {
1225 if (picture.getWidth() > 0 && picture.getHeight() > 0) {
1226 scale(dst.width() / picture.getWidth(), dst.height() / picture.getHeight());
1228 drawPicture(picture);
1233 * Draw the picture, stretched to fit into the dst rectangle.
1235 public void drawPicture(@NonNull Picture picture, @NonNull Rect dst) {
1238 if (picture.getWidth() > 0 && picture.getHeight() > 0) {
1239 scale((float) dst.width() / picture.getWidth(),
1240 (float) dst.height() / picture.getHeight());
1242 drawPicture(picture);