mojo:mojo.graphics.Image.New
Creates a new Image.
New( pixmap,... ) Creates an image from an existing pixmap.
New( texture,... ) Creates an image from an existing texture.
New( atlas,... ) Creates an image 'frame' from an 'atlas' image. The new images shares the same material as the atlas.
New( width,height,... ) Creates an image that can be rendered to using a canvas.
Parameters | |
---|---|
pixmap |
pixmap Source image. |
texture |
texture Source texture. |
textureFlags |
textureFlags Image texture flags. |
shader |
shader Image shader. |
atlas |
atlas Source atlas image. |
rect |
rect Source rect. |
x,y,width,height |
x,y,width,height Source rect |
width,height |
width,height Image size. |