Difference between revisions of "Bitmap.new"
From GiderosMobile
(removed category reference) |
Tag: Undo |
||
Line 1: | Line 1: | ||
− | + | [[Category:Bitmap]] | |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
'''Class:''' [[Bitmap]]<br/> | '''Class:''' [[Bitmap]]<br/> |
Revision as of 00:27, 9 December 2019
Available since: Gideros 2011.6
Class: Bitmap
Description
Creates a new Bitmap object.
Bitmap.new(texture)
Parameters
texture: (TextureBase or TextureRegion)
Examples
local texture = Texture.new("image.png")
local region = TextureRegion.new(texture, 0, 0, 100, 50)
local bitmap1 = Bitmap.new(texture)
local bitmap2 = Bitmap.new(region)
stage:addChild(bitmap1)
stage:addChild(bitmap2)