mojo.graphics.Image.New - nitrologic/monkey2 GitHub Wiki
mojo::mojo.graphics.mojo.graphics.Image.New
std:std.graphics.Pixmap,textureFlags:mojo:mojo.graphics.TextureFlags=TextureFlags.FilterMipmap,shader:mojo:mojo.graphics.Shader=Null )
Method New:Void( pixmap:mojo:mojo.graphics.Texture,rect:std:std.geom.Recti,shader:mojo:mojo.graphics.Shader=Null )
Method New:Void( texture:mojo:mojo.graphics.Texture,shader:mojo:mojo.graphics.Shader=Null )
Method New:Void( texture:mojo:mojo.graphics.Image,x:monkey:monkey.types.Int,y:monkey:monkey.types.Int,width:monkey:monkey.types.Int,height:monkey:monkey.types.Int )
Method New:Void( atlas:mojo:mojo.graphics.Image,rect:std:std.geom.Recti )
Method New:Void( atlas:monkey:monkey.types.Int,height:monkey:monkey.types.Int,format:std:std.graphics.PixelFormat,textureFlags:mojo:mojo.graphics.TextureFlags=TextureFlags.FilterMipmap,shader:mojo:mojo.graphics.Shader=Null )
Method New:Void( width:monkey:monkey.types.Int,height:monkey:monkey.types.Int,textureFlags:mojo:mojo.graphics.TextureFlags=TextureFlags.FilterMipmap,shader:mojo:mojo.graphics.Shader=Null )
Method New:Void( width: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. |