phaser - v4.0.0-rc.4
    Preparing search index...
    • Takes a snapshot of an area from the current frame displayed by a canvas.

      This is then copied to an Image object. When this loads, the results are sent to the callback provided in the Snapshot Configuration object.

      Parameters

      • sourceCanvas: HTMLCanvasElement

        The canvas to take a snapshot of.

      • config: SnapshotState

        The snapshot configuration object.

      Returns void