Media.new

From GiderosMobile
Revision as of 01:13, 7 February 2020 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2016.1<br/> '''<translate>Class</translate>:''' Media<br/> === <translate>Descri...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2016.1
Class: Media

Description

Creates a new Media object with provided image.

Media.new(path)

Parameters

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

Description

Creates a blank Media object with provided dimensions.

Media.new(width, height)

Parameters

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