summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.image.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-11 17:45:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-11 17:45:18 +0800
commite069d28762467969596a66ace8b5cde34427c8a0 (patch)
treea882fdbe4a918e1ae075f148dadcf08addaa76f4 /meta/3rd/love2d/library/love.image.lua
parent669073e384f22c9bae84fa38ffb75fe046a11491 (diff)
downloadlua-language-server-e069d28762467969596a66ace8b5cde34427c8a0.zip
update submodules
Diffstat (limited to 'meta/3rd/love2d/library/love.image.lua')
-rw-r--r--meta/3rd/love2d/library/love.image.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.image.lua b/meta/3rd/love2d/library/love.image.lua
index 5db859ae..19d6f825 100644
--- a/meta/3rd/love2d/library/love.image.lua
+++ b/meta/3rd/love2d/library/love.image.lua
@@ -186,6 +186,12 @@ function ImageData:paste(source, dx, dy, sx, sy, sw, sh) end
function ImageData:setPixel(x, y, r, g, b, a) end
---
+---Gets the pixel format of the ImageData.
+---
+---@return love.PixelFormat format # The pixel format the ImageData was created with.
+function ImageData:getFormat() end
+
+---
---Compressed image data formats. Here and here are a couple overviews of many of the formats.
---
---Unlike traditional PNG or jpeg, these formats stay compressed in RAM and in the graphics card's VRAM. This is good for saving memory space as well as improving performance, since the graphics card will be able to keep more of the image's pixels in its fast-access cache when drawing it.