Skip to content

Function: createImage() ​

ts
function createImage(width?, height?): CompatImage;

Defined in: packages/minerender/src/canvas/CanvasCompat.ts:8

Creates an image through the active environment provider. Dimensions are in pixels.

Parameters ​

ParameterType
width?number
height?number

Returns ​

CompatImage