Skip to main content
Module

x/canvas/mod.ts>SkPicture

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface SkPicture
implements EmbindObject<SkPicture>
import { type SkPicture } from "https://deno.land/x/canvas@v1.0.0/mod.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.