Skip to main content

Create a blank image with specified size (image.new)

Declaration

img = image.new(width, height)

Parameters

  • width, height
    Integer. Width and height of the new image

Returns

  • img
    Image object. The newly created image

Description

Create a blank image. All pixels are initialized to 0x000000 (black)
This call creates a new image object. For efficient frequent usage, please pair with image:destroy