Skip to main content

DrawImage

Callable

  • DrawImage(Source: string | HTMLCanvasElement | HTMLImageElement, X: number, Y: number, Invert?: boolean): boolean

  • Draws an image from a source on the main canvas


    Parameters

    • Source: string | HTMLCanvasElement | HTMLImageElement

      URL of image or image itself

    • X: number

      Position of the image on the X axis

    • Y: number

      Position of the image on the Y axis

    • optionalInvert: boolean

      Flips the image vertically

    Returns boolean

    • whether the image was complete or not