Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/shapes_plus/mod.ts>Image

Used canvas library to make shapes
Latest
class Image
extends EventTarget
Re-export
import { Image } from "https://deno.land/x/shapes_plus@v0.0.5.1/mod.ts";

Constructors

new
Image(data?: ImageSource)

Properties

readonly
_unsafePointer
readonly
height
src: ImageSource | undefined
readonly
width
optional
[_src]: ImageSource
[_token]: { ptr: Deno.PointerValue; }

Static Methods

load(path: string | URL)
loadSync(path: string)

Load an image from a local file synchronously.