Difference between revisions of "Bitmap"

From GiderosMobile
Line 9: Line 9:
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
[[Bitmap.new]] - creates a new Bitmap object<br/>
+
[[Bitmap.new]] {{<translate>creates a new Bitmap object</translate>}}<br/>
[[Bitmap:getAnchorPoint]] - returns the x and y coordinates of the anchor point<br/>
+
[[Bitmap:getAnchorPoint]] {{<translate>returns the x and y coordinates of the anchor point</translate>}}<br/>
[[Bitmap:setAnchorPoint]] - sets the anchor point<br/>
+
[[Bitmap:setAnchorPoint]] {{<translate>sets the anchor point</translate>}}<br/>
[[Bitmap:setTexture]] - sets the texture<br/>
+
[[Bitmap:setTexture]] {{<translate>sets the texture</translate>}}<br/>
[[Bitmap:setTextureRegion]] - sets the texture region<br/>
+
[[Bitmap:setTextureRegion]] {{<translate>sets the texture region</translate>}}<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 15:20, 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 Template:Creates a new Bitmap object
Bitmap:getAnchorPoint Template:Returns the x and y coordinates of the anchor point
Bitmap:setAnchorPoint Template:Sets the anchor point
Bitmap:setTexture Template:Sets the texture
Bitmap:setTextureRegion Template:Sets the texture region

Events

Constants