Skip to main content

DrawImageResize

Callable

  • DrawImageResize(Source: string | HTMLCanvasElement | HTMLImageElement, X: number, Y: number, Width: number, Height: number): boolean

  • Draws a resized image from a source to 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

    • Width: number

      Width of the image after being resized

    • Height: number

      Height of the image after being resized

    Returns boolean

    • whether the image was complete or not