Difference between revisions of "Media.new"
From GiderosMobile
m |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | '''Available since:''' Gideros 2016.1<br/> | ||
+ | '''Class:''' [[Media]]<br/> | ||
− | + | === Description === | |
− | |||
− | |||
− | === | ||
Creates a new Media object with provided image. | Creates a new Media object with provided image. | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 10: | Line 9: | ||
</source> | </source> | ||
− | === | + | === Parameters === |
− | '''path''': (string) | + | '''path''': (string) the path of the file to create<br/> |
+ | |||
+ | |||
+ | ---- | ||
− | === | + | === Description === |
Creates a blank Media object with provided dimensions. | Creates a blank Media object with provided dimensions. | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 19: | Line 21: | ||
</source> | </source> | ||
− | === | + | === 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}} |
Revision as of 22:45, 24 October 2022
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
- 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