-
-
-
Accepts either an existing canvas or creates a new one of given size. Returns object of canvas, 2d context, img data and wrapped img data as u32 ABGR pixel array.
Creates canvas for given image and draws image, optionally with given new size. If no width/height is given, the canvas will be of same size as image. If parent
is given, the canvas is appended to it as child.
-
-
-
-
Async function. Loads image from given src
URL.
-
Generated using TypeDoc
Creates a canvas element of given size, obtains its 2D drawing context and returns object of both. If
parent
is given, the canvas is appended to it as child.