Skip to main content

pngImage()

pngImage(g, bounds, imageBytes): void

Renders a PNG image from bytes

Parameters

ParameterType
gCanvasRenderingContext2D
boundsRect
imageBytesUint8Array

Returns

void

Source

src/utils.ts:122