window.kaolin
    Preparing search index...

    Function imageDataFromCanvas

    • Read the full RGBA pixel buffer of a canvas as an ImageData.

      Parameters

      • canvasOrId: CanvasOrId

        Canvas element or its DOM id.

      Returns ImageData

      The canvas ImageData, or null if the canvas or 2D context is unavailable.