Skip to main content

DrawImageCanvas

Callable

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

  • Draws a zoomed image from a source to a specific canvas


    Parameters

    • Source: string | HTMLCanvasElement | HTMLImageElement

      URL of the image

    • 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

      Options to use when drawing

    Returns boolean

    • whether the image was complete or not