Skip to main content

DrawCanvas

Callable

  • DrawCanvas(Img, Canvas, X, Y, AlphaMasks, TextureAlphaMasks): boolean

  • Draws a canvas to a specific canvas


    Parameters

    • Img: HTMLImageElement | HTMLCanvasElement

      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

    • TextureAlphaMasks: readonly TextureAlphaMask[]

      A list of mask layers to apply to the asset

    Returns boolean

    • whether the image was complete or not