A RGBBuffer object is used for Image direct-color pixel manipulations. A pixel can be read or written by setting its red, green, blue and alpha components.
Load() This event is called when the object becames available in the current runtime system.
Unload() This event is called when the object has been removed from the current runtime system (but not yet deallocated).
var width: Int The width of the RGBBuffer. (read-only)
var height: Int The height of the RGBBuffer. (read-only)
var image: Image Create an Image from the RGBBuffer values. (read-only)
var objectName: String The name of the object.
- func valueFromRGB(red: Int, green: Int, blue: Int, alpha: Int = 255): Int Convert parameters to a 32bit packet value.
- func RGBBuffer(width: Int, height: Int) Initializes and returns a new RGBSurface with the specified width and height.