Skip to main content

DrawCanvas

Callable

  • DrawCanvas(Img: HTMLCanvasElement | HTMLImageElement, Canvas: CanvasRenderingContext2D, X: number, Y: number, AlphaMasks: readonly RectTuple[]): boolean

  • Draws a canvas to a specific canvas


    Parameters

    • Img: HTMLCanvasElement | HTMLImageElement

      Canvas to draw

    • Canvas: CanvasRenderingContext2D

      Canvas on which to draw the image

    • X: number

      Position of the image on the X axis

    • Y: number

      Position of the image on the Y axis

    • AlphaMasks: readonly RectTuple[]

      A list of alpha masks to apply to the asset

    Returns boolean

    • whether the image was complete or not