DgsCreateGIF: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} This function creates a GIF interface plugin. ==Syntax== <syntaxhighlight lang="lua"> element dgsCreateGIF( string pathOrRaw ) </syntaxhighlight> ===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== <syntaxhighlight lang="lua"> DGS = exports.dg...") |
No edit summary |
||
Line 26: | Line 26: | ||
==See Also== | ==See Also== | ||
{{DGS_Plugin/ | {{DGS_Plugin/Gif}} |
Latest revision as of 10:28, 23 August 2025
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)