-
-
Notifications
You must be signed in to change notification settings - Fork 4
LuaImage
tom5454 edited this page Nov 1, 2023
·
1 revision
Returns the image width
Returns the image height
Returns the color of the pixel at x and y coordinates
Saves the image into a ByteBuffer. Returns the ByteBuffer
Returns the image pixels as an unpacked ARGB numbers
local pixels = { image.getAsBuffer() }
--values are available with pixels[x + image.getWidth() * (y - 1)]Set the color value of the pixel at x and y
See: Color arguments
Returns a GPU context where output is drawn onto this image.
Removes the image from the used VRAM amount and marks the image invalid.
Returns a string reference to the image.
The reference is only usable on the same peripheral.