JavaScript APIdgNamespacesPaintFunctionspngImageOn this pagepngImage() pngImage(g, bounds, imageBytes): void Renders a PNG image from bytes Parameters ParameterTypegCanvasRenderingContext2DboundsRectimageBytesUint8Array Returns void Source src/utils.ts:122