Skip to main content

DrawImageResize

Callable

  • DrawImageResize(Source, X, Y, Width, Height): boolean

  • Draws a resized image from a source to the main canvas


    Parameters

    • Source: string | HTMLImageElement | HTMLCanvasElement

      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