- Functions for creating image objects.
Static methods
staticload(buffer:String, ?options:Null<ImageLoadOptions>):Null<ImageLoadResult>
- Load image (PNG or JPEG) from buffer.
Parameters:
| buffer | image data buffer | 
|---|---|
| options | an optional table containing parameters for loading the image. | 
Returns:
object with the following fields: width, height, type and buffer (raw data). nil is returned if loading fails.
staticload_buffer(buffer:String, ?options:Null<ImageLoadOptions>):Null<ImageLoadResult>
- Load image (PNG or JPEG) from a string buffer.
Parameters:
| buffer | image data buffer | 
|---|---|
| options | an optional table containing parameters for loading the image. | 
Returns:
object with the following fields: width, height, type and buffer (raw data). nil is returned if loading fails.