Contents

PKDrawing

A structure representing the drawing information captured by a canvas view.

Declaration

struct PKDrawing

Mentioned in

Overview

A PKDrawing object stores the user-drawn content from a PKCanvasView object. You use drawing objects to store the data associated with your user’s drawings. You can save this data with the rest of your app’s content, and you can use that saved data to create a new drawing object later. You can also generate an image based on the drawn content that you can copy to the pasteboard, save to disk, or share.

Topics

Creating a drawing object

Getting the canvas bounds

Generating an image

Getting the drawing data

Modifying the drawing

Supporting backward compatibility

Using reference types

Instance Methods

See Also

Canvas