Media.new

From GiderosMobile
Revision as of 15:28, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2016.1
Class: Media

Description

Creates a new Media object with provided image. <syntaxhighlight lang="lua"> Media.new(path) </source>

Parameters

path: (string) the path of the file to create



Description

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

Parameters

width: (number) the width of the image to create
height: (number) the height of the image to create