Skip to main content
Module

x/canvas/mod.ts>SkPicture

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

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