Function canvasFlipY

  • Returns a new canvas with the image/canvas-content flipped vertically. Useful for putImageData(as it does not respect scale and translate) and WebGL textures, which are flipped vertically.

    Parameters

    • canvas: OffscreenCanvas | ImageBitmap | HTMLCanvasElement | HTMLImageElement | HTMLVideoElement

    Returns HTMLCanvasElement

Generated using TypeDoc