Difference between revisions of "Bitmap"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' android, ios, mac, pc<br/>
+
'''<translate>Supported platforms</translate>:''' [[File:Platform android]][[File:Platform ios]][[File:Platform mac]][[File:Platform pc]]<br/>
'''Available since:''' Gideros 2011.6<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 +
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
The [[Special:MyLanguage/Bitmap|Bitmap]] class is used to display texture related objects in the scene tree. It is possible to create Bitmap object from [[Special:MyLanguage/TextureBase|TextureBase]] or [[Special:MyLanguage/TextureRegion|TextureRegion]] instances.<br />
+
The `Bitmap` class is used to display texture related objects in the scene tree. It is possible to create Bitmap object from `TextureBase` or `TextureRegion` instances.<br />
 
<br /></translate>
 
<br /></translate>
 
{|-
 
{|-

Revision as of 10:28, 24 August 2018

Supported platforms: File:Platform androidFile:Platform iosFile:Platform macFile:Platform pc
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 object from `TextureBase` or `TextureRegion` instances.

Methods

Bitmap.new creates a new Bitmap object
Bitmap:getAnchorPoint returns the x and y coordinates of the anchor point
Bitmap:setAnchorPoint sets the anchor point
Bitmap:setTexture sets the texture
Bitmap:setTextureRegion sets the texture region

Events

Constants