Media.new: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2016.1<br/>
'''Class:''' [[Media]]<br/>


'''<translate>Available since</translate>:''' Gideros 2016.1<br/>
=== Description ===
'''<translate>Class</translate>:''' [[Special:MyLanguage/Media|Media]]<br/>
 
=== <translate>Description</translate> ===
Creates a new Media object with provided image.
Creates a new Media object with provided image.
<source lang="lua">
<syntaxhighlight lang="lua">
Media.new(path)
Media.new(path)
</source>
</syntaxhighlight>
 
=== Parameters ===
'''path''': (string) the path of the file to create<br/>
 


=== <translate>Parameters</translate> ===
----
'''path''': (string) <translate>the path of the file to create</translate>


=== <translate>Description</translate> ===
=== Description ===
Creates a blank Media object with provided dimensions.
Creates a blank Media object with provided dimensions.
<source lang="lua">
<syntaxhighlight lang="lua">
Media.new(width, height)
Media.new(width, height)
</source>
</syntaxhighlight>


=== <translate>Parameters</translate> ===
=== Parameters ===
'''width''': (number) the width of the image to create<br/>
'''width''': (number) the width of the image to create<br/>
'''height''': (number) the height of the image to create<br/>
'''height''': (number) the height of the image to create<br/>


{{Media}}
{{Media}}

Latest revision as of 13:31, 13 July 2023