Difference between revisions of "Media.new"
From GiderosMobile
m |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Creates a new Media object with provided image. | Creates a new Media object with provided image. | ||
− | < | + | <syntaxhighlight lang="lua"> |
Media.new(path) | Media.new(path) | ||
</source> | </source> | ||
Line 17: | Line 17: | ||
=== Description === | === Description === | ||
Creates a blank Media object with provided dimensions. | Creates a blank Media object with provided dimensions. | ||
− | < | + | <syntaxhighlight lang="lua"> |
Media.new(width, height) | Media.new(width, height) | ||
</source> | </source> |
Revision as of 14:28, 13 July 2023
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
- X Media:copy
- X Media:crop
- X Media:drawFill
- X Media:drawImage
- X Media:drawLine
- X Media:drawText
- X Media:flipHorizontal
- X Media:flipVertical
- X Media:floodFill
- X Media:getHeight
- X Media:getPath
- X Media:getPixel
- X Media:getRotation
- X Media:getWidth
- X Media:resize
- X Media:resizeHeight
- X Media:resizeWidth
- X Media:save
- X Media:setPixel
- X Media:setRotation
- X Media:trim