iimage
Contents
| Name | Description |
|---|---|
| getDimensions( ) | Returns the dimensions of the image |
| getpixel( position ) | Returns the color at a position in the image. |
| setpixel( position , color , shouldblend ) | Sets the color of an image at a particular pixel. |
getDimensions( )
Returns the dimensions of the image
Returns
-
The dimensions of the image
Defined at client/lua_api/video/iimage.cpp:138
getpixel( vec2i position )
Returns the color at a position in the image.
Parameters
-
position (vec2i)
The position of the pixel to return
Returns
-
The color of the image at the position
Defined at client/lua_api/video/iimage.cpp:122
setpixel( vec2i position , color color , boolean shouldblend )
Sets the color of an image at a particular pixel.
Parameters
-
position (vec2i)
The position of the pixel to change colors
-
color (color)
The color to change the pixel to
-
shouldblend (boolean)
Should this pixel blend into it's neighbors?
Defined at client/lua_api/video/iimage.cpp:101