Lines Matching refs:picture
1575 * Save the canvas state, draw the picture, and restore the canvas state.
1576 * This differs from picture.draw(canvas), which does not perform any
1579 * @param picture The picture to be drawn
1581 public void drawPicture(Picture picture) {
1582 picture.endRecording();
1583 native_drawPicture(mNativeCanvas, picture.ni());
1587 * Draw the picture, stretched to fit into the dst rectangle.
1589 public void drawPicture(Picture picture, RectF dst) {
1592 if (picture.getWidth() > 0 && picture.getHeight() > 0) {
1593 scale(dst.width() / picture.getWidth(), dst.height() / picture.getHeight());
1595 drawPicture(picture);
1600 * Draw the picture, stretched to fit into the dst rectangle.
1602 public void drawPicture(Picture picture, Rect dst) {
1605 if (picture.getWidth() > 0 && picture.getHeight() > 0) {
1606 scale((float) dst.width() / picture.getWidth(),
1607 (float) dst.height() / picture.getHeight());
1609 drawPicture(picture);