blob: 1dcab0220a99945b3dd6c2624c572d1011551f35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---Image API documentation
---Functions for creating image objects.
---@class image
image = {}
---luminance image type
image.TYPE_LUMINANCE = nil
---RGB image type
image.TYPE_RGB = nil
---RGBA image type
image.TYPE_RGBA = nil
---Load image (PNG or JPEG) from buffer.
---@param buffer string # image data buffer
---@param premult boolean? # optional flag if alpha should be premultiplied. Defaults to false
---@return table # object or nil if loading fails. The object is a table with the following fields:
function image.load(buffer, premult) end
return image
|