Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/canvaseno/types.ts>SkPicture

Canvas API for deno
Latest
interface SkPicture
implements EmbindObject<SkPicture>
import { type SkPicture } from "https://deno.land/x/canvaseno@v1.0.2/types.ts";

See SkPicture.h for more information on this class.

Of note, SkPicture is not what is colloquially thought of as a "picture" (what we call a bitmap). An SkPicture is a series of draw commands.

Methods

serialize(): SkData

Returns the serialized format of this SkPicture. The format may change at anytime and no promises are made for backwards or forward compatibility.