skia
    Preparing search index...

    Interface PictureRecorder

    CanvasKit is built with Emscripten and Embind. Embind adds the following methods to all objects that are exposed with it. This _type field is necessary for the TypeScript compiler to differentiate between opaque types such as Shader and ColorFilter. It doesn't exist at runtime.

    interface PictureRecorder {
        _type: "PictureRecorder";
        beginRecording(bounds: InputRect, computeBounds?: boolean): Canvas;
        delete(): void;
        deleteLater(): void;
        finishRecordingAsPicture(): SkPicture;
        isAliasOf(other: any): boolean;
        isDeleted(): boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _type: "PictureRecorder"

    Methods

    • Returns a canvas on which to draw. When done drawing, call finishRecordingAsPicture()

      Parameters

      • bounds: InputRect

        a rect to cull the results.

      • OptionalcomputeBounds: boolean

        Optional boolean (default false) which tells the recorder to compute a more accurate bounds for the cullRect of the picture.

      Returns Canvas