Picture

class Picture
kotlin.Any
   ↳ androidx.ui.graphics.Picture

An object representing a sequence of recorded graphical operations.

To create a Picture, use a PictureRecorder.

A Picture can be placed in a Scene using a SceneBuilder, via the SceneBuilder.addPicture method. A Picture can also be drawn into a Canvas, using the Canvas.drawPicture method.

To create a Picture, use a PictureRecorder.

Summary

Public constructors

<init>(frameworkPicture: Picture)

An object representing a sequence of recorded graphical operations.

Public methods

Rect

Unit

Release the resources used by this object.

Properties

Picture

Public constructors

<init>

Picture(frameworkPicture: Picture)

An object representing a sequence of recorded graphical operations.

To create a Picture, use a PictureRecorder.

A Picture can be placed in a Scene using a SceneBuilder, via the SceneBuilder.addPicture method. A Picture can also be drawn into a Canvas, using the Canvas.drawPicture method.

To create a Picture, use a PictureRecorder.

Public methods

cullRect

fun cullRect(): Rect

dispose

fun dispose(): Unit

Release the resources used by this object. The object is no longer usable after this method is called.

Properties

frameworkPicture

val frameworkPicture: Picture