summaryrefslogtreecommitdiff
path: root/meta/3rd/Defold/library/image.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/Defold/library/image.lua')
-rw-r--r--meta/3rd/Defold/library/image.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/3rd/Defold/library/image.lua b/meta/3rd/Defold/library/image.lua
new file mode 100644
index 00000000..1dcab022
--- /dev/null
+++ b/meta/3rd/Defold/library/image.lua
@@ -0,0 +1,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 \ No newline at end of file