diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-11 17:45:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-11 17:45:18 +0800 |
commit | e069d28762467969596a66ace8b5cde34427c8a0 (patch) | |
tree | a882fdbe4a918e1ae075f148dadcf08addaa76f4 /meta/3rd/love2d/library/love.image.lua | |
parent | 669073e384f22c9bae84fa38ffb75fe046a11491 (diff) | |
download | lua-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.lua | 6 |
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. |