RecordingCanvas.DrawPicture Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DrawPicture(Picture) |
Save the canvas state, draw the picture, and restore the canvas state. |
| DrawPicture(Picture, Rect) |
Draw the picture, stretched to fit into the dst rectangle. |
| DrawPicture(Picture, RectF) |
Draw the picture, stretched to fit into the dst rectangle. |
DrawPicture(Picture)
Save the canvas state, draw the picture, and restore the canvas state.
[Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;)V", "", ApiSince=29)]
public override sealed void DrawPicture(Android.Graphics.Picture picture);
[<Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;)V", "", ApiSince=29)>]
override this.DrawPicture : Android.Graphics.Picture -> unit
Parameters
- picture
- Picture
- Attributes
Remarks
Save the canvas state, draw the picture, and restore the canvas state. This differs from picture.draw(canvas), which does not perform any save/restore. Note: This forces the picture to internally call Picture.endRecording in order to prepare for playback.
Android reference for android.graphics.RecordingCanvas.drawPicture.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DrawPicture(Picture, Rect)
Draw the picture, stretched to fit into the dst rectangle.
[Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/Rect;)V", "", ApiSince=29)]
public override sealed void DrawPicture(Android.Graphics.Picture picture, Android.Graphics.Rect dst);
[<Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/Rect;)V", "", ApiSince=29)>]
override this.DrawPicture : Android.Graphics.Picture * Android.Graphics.Rect -> unit
Parameters
- picture
- Picture
- dst
- Rect
- Attributes
Remarks
Draw the picture, stretched to fit into the dst rectangle.
Android reference for android.graphics.RecordingCanvas.drawPicture.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DrawPicture(Picture, RectF)
Draw the picture, stretched to fit into the dst rectangle.
[Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/RectF;)V", "", ApiSince=29)]
public override sealed void DrawPicture(Android.Graphics.Picture picture, Android.Graphics.RectF dst);
[<Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/RectF;)V", "", ApiSince=29)>]
override this.DrawPicture : Android.Graphics.Picture * Android.Graphics.RectF -> unit
Parameters
- picture
- Picture
- dst
- RectF
- Attributes
Remarks
Draw the picture, stretched to fit into the dst rectangle.
Android reference for android.graphics.RecordingCanvas.drawPicture.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.