Difference between revisions of "Bitmap"

From GiderosMobile
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
<translate><br />
 
<translate><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 />
+
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 />
 
<br /></translate>
 
<br /></translate>
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[Bitmap.new]] ''<translate>creates a new Bitmap object</translate>''<br/>
+
[[Special:MyLanguage/Bitmap.new|Bitmap.new]] ''<translate>creates a new Bitmap object</translate>''<br/>
[[Bitmap:getAnchorPoint]] ''<translate>returns the x and y coordinates of the anchor point</translate>''<br/>
+
[[Special:MyLanguage/Bitmap:getAnchorPoint|Bitmap:getAnchorPoint]] ''<translate>returns the x and y coordinates of the anchor point</translate>''<br/>
[[Bitmap:setAnchorPoint]] ''<translate>sets the anchor point</translate>''<br/>
+
[[Special:MyLanguage/Bitmap:setAnchorPoint|Bitmap:setAnchorPoint]] ''<translate>sets the anchor point</translate>''<br/>
[[Bitmap:setTexture]] ''<translate>sets the texture</translate>''<br/>
+
[[Special:MyLanguage/Bitmap:setTexture|Bitmap:setTexture]] ''<translate>sets the texture</translate>''<br/>
[[Bitmap:setTextureRegion]] ''<translate>sets the texture region</translate>''<br/>
+
[[Special:MyLanguage/Bitmap:setTextureRegion|Bitmap:setTextureRegion]] ''<translate>sets the texture region</translate>''<br/>
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 17:36, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

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