DgsCreateGIF
Jump to navigation
Jump to search
This function creates a GIF interface plugin.
Syntax
element dgsCreateGIF( string pathOrRaw )
Required Arguments
- pathOrRaw: A string representing the path to your GIF file, or the raw GIF data
Returns
Returns a dgs-dxgif element (DGS Plugin Type)[ dgs-dxgif (Element Type) ] if succeed, false otherwise
Example
DGS = exports.dgs --get exported functions from dgs local gif = DGS:dgsCreateGIF("test.gif") DGS:dgsGIFPlay(gif,1) --Play GIF with Speed 1x image = DGS:dgsCreateImage(500,500,200,200,gif,false)