Create an image from data (image.load_data)
Declaration
img = image.load_data(data)
Parameters
- data
String. Image data in png or jpeg format
Returns
- img
Image object or nil. Returns newly created image object, or nil if data is not a valid image
Description
Create an image object from raw data
This call creates a new image object. For efficient frequent usage, please pair with image:destroy