axmol/cocos/scripting/lua-bindings/auto/api/Image.lua

97 lines
2.8 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module Image
-- @extend Ref
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] hasPremultipliedAlpha
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- brief Save Image data to the specified file, with specified format.<br>
-- param filePath the file's absolute path, including file suffix.<br>
-- param isToRGB whether the image is saved as RGB format.
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] saveToFile
-- @param self
-- @param #string filename
-- @param #bool isToRGB
2014-03-10 14:04:58 +08:00
-- @return bool#bool ret (return value: bool)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] hasAlpha
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] isCompressed
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] getHeight
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- brief Load the image from the specified path.<br>
-- param path the absolute file path.<br>
-- return true if loaded correctly.
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] initWithImageFile
-- @param self
-- @param #string path
2014-03-10 14:04:58 +08:00
-- @return bool#bool ret (return value: bool)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] getWidth
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
--
-- @function [parent=#Image] getBitPerPixel
2014-03-10 14:04:58 +08:00
-- @param self
-- @return int#int ret (return value: int)
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] getFileType
-- @param self
-- @return int#int ret (return value: int)
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] getNumberOfMipmaps
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] getRenderFormat
-- @param self
-- @return int#int ret (return value: int)
2014-03-10 14:04:58 +08:00
--------------------------------
-- treats (or not) PVR files as if they have alpha premultiplied.<br>
-- Since it is impossible to know at runtime if the PVR images have the alpha channel premultiplied, it is<br>
-- possible load them as if they have (or not) the alpha channel premultiplied.<br>
-- By default it is disabled.
-- @function [parent=#Image] setPVRImagesHavePremultipliedAlpha
-- @param self
-- @param #bool haveAlphaPremultiplied
-- @return Image#Image self (return value: cc.Image)
2014-03-10 14:04:58 +08:00
--------------------------------
-- js ctor
2014-03-10 14:04:58 +08:00
-- @function [parent=#Image] Image
-- @param self
-- @return Image#Image self (return value: cc.Image)
2014-03-10 14:04:58 +08:00
return nil