Difference between revisions of "Bitmap"
From GiderosMobile
m |
|||
Line 5: | Line 5: | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | '''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/> | ||
+ | |||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
− | + | The Bitmap class is used to display texture related objects in the scene tree. It is possible to create Bitmap objects from [[Special:MyLanguage/TextureBase|TextureBase]] or [[Special:MyLanguage/TextureRegion|TextureRegion]] instances. | |
− | The | + | |
− | |||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/Bitmap.new|Bitmap.new]] ''<translate>creates a new Bitmap object</translate>''<br/><!-- GIDEROSMTD:Bitmap.new(texture) creates a new Bitmap object --> | + | [[Special:MyLanguage/Bitmap.new|Bitmap.new]] ''<translate>creates a new Bitmap object</translate>''<br/> |
− | [[Special:MyLanguage/Bitmap:getAnchorPoint|Bitmap:getAnchorPoint]] ''<translate>returns the x and y coordinates of the anchor point</translate>''<br/><!-- GIDEROSMTD:Bitmap:getAnchorPoint() returns the x and y coordinates of the anchor point --> | + | <!-- GIDEROSMTD:Bitmap.new(texture) creates a new Bitmap object --> |
− | [[Special:MyLanguage/Bitmap:setAnchorPoint|Bitmap:setAnchorPoint]] ''<translate>sets the anchor point</translate>''<br/><!-- GIDEROSMTD:Bitmap:setAnchorPoint(x,y) sets the anchor point --> | + | [[Special:MyLanguage/Bitmap:getAnchorPoint|Bitmap:getAnchorPoint]] ''<translate>returns the x and y coordinates of the anchor point</translate>''<br/> |
− | [[Special:MyLanguage/Bitmap:setTexture|Bitmap:setTexture]] ''<translate>sets the texture</translate>''<br/><!-- GIDEROSMTD:Bitmap:setTexture(texture) sets the texture --> | + | <!-- GIDEROSMTD:Bitmap:getAnchorPoint() returns the x and y coordinates of the anchor point --> |
− | [[Special:MyLanguage/Bitmap:setTextureRegion|Bitmap:setTextureRegion]] ''<translate>sets the texture region</translate>''<br/><!-- GIDEROSMTD:Bitmap:setTextureRegion(textureRegion) sets the texture region --> | + | [[Special:MyLanguage/Bitmap:setAnchorPoint|Bitmap:setAnchorPoint]] ''<translate>sets the anchor point</translate>''<br/> |
+ | <!-- GIDEROSMTD:Bitmap:setAnchorPoint(x,y) sets the anchor point --> | ||
+ | [[Special:MyLanguage/Bitmap:setTexture|Bitmap:setTexture]] ''<translate>sets the texture</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:Bitmap:setTexture(texture) sets the texture --> | ||
+ | [[Special:MyLanguage/Bitmap:setTextureRegion|Bitmap:setTextureRegion]] ''<translate>sets the texture region</translate>''<br/> | ||
+ | <!-- GIDEROSMTD:Bitmap:setTextureRegion(textureRegion) sets the texture region --> | ||
+ | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
|} | |} |
Revision as of 08:16, 4 January 2020
Supported platforms:
Available since: Gideros 2011.6
Inherits from: Sprite
Description
The Bitmap class is used to display texture related objects in the scene tree. It is possible to create Bitmap objects from TextureBase or TextureRegion instances.
MethodsBitmap.new creates a new Bitmap object |
EventsConstants |