Skip to main content

DrawImageEx

Callable

  • DrawImageEx(Source: string | HTMLCanvasElement | HTMLImageElement, Canvas: CanvasRenderingContext2D, X: number, Y: number, Options?: DrawOptions): boolean

  • Draws an image on canvas, applying all options


    Parameters

    • Source: string | HTMLCanvasElement | HTMLImageElement

      URL of image or image itself

    • 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

    • optionalOptions: DrawOptions

      any extra options

    Returns boolean

    • whether the image was complete or not