Function imageDataToCanvas

  • Converts an ImageData to a canvas. This creates a new canvas element and draws the image data on it. Image Data can be created from image pixels like from gl.readPixels This can be used to convert a WebGL texture/render target to a canvas/data url. Note: if the output is flipped, use canvasFlipY after this, like canvasFlipY(imageDataToCanvas(imageData))

    Parameters

    • data: ImageData

      image data to convert

    Returns HTMLCanvasElement

Generated using TypeDoc