starling-framework
Version:
A fast, productive library for 2D cross-platform development.
773 lines • 132 kB
HTML
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Texture | starling-framework</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">starling-framework</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../index.html">starling</a>
</li>
<li>
<a href="../modules/starling.textures.html">textures</a>
</li>
<li>
<a href="starling.textures.texture.html">Texture</a>
</li>
</ul>
<h1>Class Texture</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>A texture stores the information that represents an image. It cannot be added to the
display list directly; instead it has to be mapped onto a display object. In Starling,
the most probably candidate for this job is the <code>Image</code> class.</p>
</div>
<p> <strong>Creating a texture</strong></p>
<p>The <code>Texture</code> class is abstract, i.e. you cannot create instance of this
class through its constructor. Instead, it offers a variety of factory methods, like
<code>fromBitmapData</code> or <code>fromEmbeddedAsset</code>.</p>
<p> <strong>Texture Formats</strong></p>
<p>Since textures can be created from a "BitmapData" object, Starling supports any bitmap
format that is supported by Flash. And since you can render any Flash display object into
a BitmapData object, you can use this to display non-Starling content in Starling - e.g.
Shape objects.</p>
<p>Starling also supports ATF textures (Adobe Texture Format), which is a container for
compressed texture formats that can be rendered very efficiently by the GPU. Refer to
the Flash documentation for more information about this format.</p>
<p>Beginning with AIR 17, you can use Starling textures to show video content (if the
current platform supports it; see "SystemUtil.supportsVideoTexture").
The two factory methods "fromCamera" and "fromNetStream" allow you to make use of
this feature.</p>
<p> <strong>Mip Mapping</strong></p>
<p>MipMaps are scaled down versions of a texture. When an image is displayed smaller than
its natural size, the GPU may display the mip maps instead of the original texture. This
reduces aliasing and accelerates rendering. It does, however, also need additional memory;
for that reason, mipmapping is disabled by default.</p>
<p> <strong>Texture Frame</strong></p>
<p>The frame property of a texture allows you to let a texture appear inside the bounds of
an image, leaving a transparent border around the texture. The frame rectangle is specified
in the coordinate system of the texture (not the image):</p>
<listing>
frame:Rectangle = new Rectangle(-10, -10, 30, 30);
texture:Texture = Texture.fromTexture(anotherTexture, null, frame);
image:Image = new Image(texture);</listing>
<p>This code would create an image with a size of 30x30, with the texture placed at
<code>x=10, y=10</code> within that image (assuming that 'anotherTexture' has a width and
height of 10 pixels, it would appear in the middle of the image).</p>
<p>The texture atlas makes use of this feature, as it allows to crop transparent edges
of a texture and making up for the changed size by specifying the original texture frame.
Tools like <a href="http://www.texturepacker.com/">TexturePacker</a> use this to
optimize the atlas.</p>
<p> <strong>Texture Coordinates</strong></p>
<p>If, on the other hand, you want to show only a part of the texture in an image
(i.e. to crop the the texture), you can either create a subtexture (with the method
'Texture.fromTexture()' and specifying a rectangle for the region), or you can manipulate
the texture coordinates of the image object. The method <code>image.setTexCoords</code>
allows you to do that.</p>
<p> <strong>Context Loss</strong></p>
<p>When the current rendering context is lost (which can happen on all platforms, but is
especially common on Android and Windows), all texture data is destroyed. However,
Starling will try to restore the textures. To do that, it will keep the bitmap
and ATF data in memory - at the price of increased RAM consumption. You can optimize
this behavior, though, by restoring the texture directly from its source, like in this
example:</p>
<listing>
texture:Texture = Texture.fromBitmap(new EmbeddedBitmap());
texture.root.onRestore = function():void
{
texture.root.uploadFromBitmap(new EmbeddedBitmap());
};</listing>
<p>The <code>onRestore</code>-method will be called when the context was lost and the
texture has been recreated (but is still empty). If you use the "AssetManager" class to
manage your textures, this will be done automatically.</p>
<p> @see starling.display.Image
@see starling.utils.AssetManager
@see starling.utils.SystemUtil
@see TextureAtlas</p>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">Texture</span>
<ul class="tsd-hierarchy">
<li>
<a href="starling.textures.subtexture.html" class="tsd-signature-type">SubTexture</a>
</li>
<li>
<a href="starling.textures.concretetexture.html" class="tsd-signature-type">ConcreteTexture</a>
</li>
</ul>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section tsd-is-external">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#base" class="tsd-kind-icon">base</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#format" class="tsd-kind-icon">format</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#frame" class="tsd-kind-icon">frame</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#frameheight" class="tsd-kind-icon">frame<wbr>Height</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#framewidth" class="tsd-kind-icon">frame<wbr>Width</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#height" class="tsd-kind-icon">height</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#mipmapping" class="tsd-kind-icon">mip<wbr>Mapping</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#nativeheight" class="tsd-kind-icon">native<wbr>Height</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#nativewidth" class="tsd-kind-icon">native<wbr>Width</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#premultipliedalpha" class="tsd-kind-icon">premultiplied<wbr>Alpha</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#root" class="tsd-kind-icon">root</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#scale" class="tsd-kind-icon">scale</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#transformationmatrix" class="tsd-kind-icon">transformation<wbr>Matrix</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#transformationmatrixtoroot" class="tsd-kind-icon">transformation<wbr>Matrix<wbr>ToRoot</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#width" class="tsd-kind-icon">width</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#asyncbitmapuploadenabled" class="tsd-kind-icon">async<wbr>Bitmap<wbr>Upload<wbr>Enabled</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#maxsize" class="tsd-kind-icon">max<wbr>Size</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-external">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#dispose" class="tsd-kind-icon">dispose</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#gettexcoords" class="tsd-kind-icon">get<wbr>Tex<wbr>Coords</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_base" class="tsd-kind-icon">get_<wbr>base</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_format" class="tsd-kind-icon">get_<wbr>format</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_frame" class="tsd-kind-icon">get_<wbr>frame</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_frameheight" class="tsd-kind-icon">get_<wbr>frame<wbr>Height</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_framewidth" class="tsd-kind-icon">get_<wbr>frame<wbr>Width</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_height" class="tsd-kind-icon">get_<wbr>height</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_mipmapping" class="tsd-kind-icon">get_<wbr>mip<wbr>Mapping</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_nativeheight" class="tsd-kind-icon">get_<wbr>native<wbr>Height</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_nativewidth" class="tsd-kind-icon">get_<wbr>native<wbr>Width</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_premultipliedalpha" class="tsd-kind-icon">get_<wbr>premultiplied<wbr>Alpha</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_root" class="tsd-kind-icon">get_<wbr>root</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_scale" class="tsd-kind-icon">get_<wbr>scale</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_transformationmatrix" class="tsd-kind-icon">get_<wbr>transformation<wbr>Matrix</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_transformationmatrixtoroot" class="tsd-kind-icon">get_<wbr>transformation<wbr>Matrix<wbr>ToRoot</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external"><a href="starling.textures.texture.html#get_width" class="tsd-kind-icon">get_<wbr>width</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#globaltolocal" class="tsd-kind-icon">global<wbr>ToLocal</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#localtoglobal" class="tsd-kind-icon">local<wbr>ToGlobal</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#settexcoords" class="tsd-kind-icon">set<wbr>Tex<wbr>Coords</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#setuptexturecoordinates" class="tsd-kind-icon">setup<wbr>Texture<wbr>Coordinates</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="starling.textures.texture.html#setupvertexpositions" class="tsd-kind-icon">setup<wbr>Vertex<wbr>Positions</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#empty" class="tsd-kind-icon">empty</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#fromatfdata" class="tsd-kind-icon">from<wbr>Atf<wbr>Data</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#frombitmap" class="tsd-kind-icon">from<wbr>Bitmap</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#frombitmapdata" class="tsd-kind-icon">from<wbr>Bitmap<wbr>Data</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#fromcolor" class="tsd-kind-icon">from<wbr>Color</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#fromdata" class="tsd-kind-icon">from<wbr>Data</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#fromembeddedasset" class="tsd-kind-icon">from<wbr>Embedded<wbr>Asset</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#fromnetstream" class="tsd-kind-icon">from<wbr>Net<wbr>Stream</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#fromtexture" class="tsd-kind-icon">from<wbr>Texture</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#fromtexturebase" class="tsd-kind-icon">from<wbr>Texture<wbr>Base</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#getmaxsize" class="tsd-kind-icon">get<wbr>Max<wbr>Size</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#get_asyncbitmapuploadenabled" class="tsd-kind-icon">get_<wbr>async<wbr>Bitmap<wbr>Upload<wbr>Enabled</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#get_maxsize" class="tsd-kind-icon">get_<wbr>max<wbr>Size</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-static tsd-is-external"><a href="starling.textures.texture.html#set_asyncbitmapuploadenabled" class="tsd-kind-icon">set_<wbr>async<wbr>Bitmap<wbr>Upload<wbr>Enabled</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="base" class="tsd-anchor"></a>
<h3>base</h3>
<div class="tsd-signature tsd-kind-icon">base<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TextureBase</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L446">lib/starling/textures/Texture.d.ts:446</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The Stage3D texture object the texture is based on.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="format" class="tsd-anchor"></a>
<h3>format</h3>
<div class="tsd-signature tsd-kind-icon">format<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Context3DTextureFormat</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L454">lib/starling/textures/Texture.d.ts:454</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The <code>Context3DTextureFormat</code> of the underlying texture data.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="frame" class="tsd-anchor"></a>
<h3>frame</h3>
<div class="tsd-signature tsd-kind-icon">frame<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Rectangle</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L412">lib/starling/textures/Texture.d.ts:412</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The texture frame if it has one (see class description), otherwise <code>null</code>.
<p>CAUTION: not a copy, but the actual object! Do not modify!</p></p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="frameheight" class="tsd-anchor"></a>
<h3>frame<wbr>Height</h3>
<div class="tsd-signature tsd-kind-icon">frame<wbr>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L422">lib/starling/textures/Texture.d.ts:422</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The width of the texture in points, taking into account the frame rectangle
(if there is one).</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="framewidth" class="tsd-anchor"></a>
<h3>frame<wbr>Width</h3>
<div class="tsd-signature tsd-kind-icon">frame<wbr>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L417">lib/starling/textures/Texture.d.ts:417</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The height of the texture in points, taking into account the frame rectangle
(if there is one).</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="height" class="tsd-anchor"></a>
<h3>height</h3>
<div class="tsd-signature tsd-kind-icon">height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L430">lib/starling/textures/Texture.d.ts:430</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The height of the texture in points.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="mipmapping" class="tsd-anchor"></a>
<h3>mip<wbr>Mapping</h3>
<div class="tsd-signature tsd-kind-icon">mip<wbr>Mapping<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L458">lib/starling/textures/Texture.d.ts:458</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Indicates if the texture contains mip maps.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="nativeheight" class="tsd-anchor"></a>
<h3>native<wbr>Height</h3>
<div class="tsd-signature tsd-kind-icon">native<wbr>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L438">lib/starling/textures/Texture.d.ts:438</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The height of the texture in pixels (without scale adjustment).</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="nativewidth" class="tsd-anchor"></a>
<h3>native<wbr>Width</h3>
<div class="tsd-signature tsd-kind-icon">native<wbr>Width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L434">lib/starling/textures/Texture.d.ts:434</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The width of the texture in pixels (without scale adjustment).</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="premultipliedalpha" class="tsd-anchor"></a>
<h3>premultiplied<wbr>Alpha</h3>
<div class="tsd-signature tsd-kind-icon">premultiplied<wbr>Alpha<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L462">lib/starling/textures/Texture.d.ts:462</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Indicates if the alpha values are premultiplied into the RGB values.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="root" class="tsd-anchor"></a>
<h3>root</h3>
<div class="tsd-signature tsd-kind-icon">root<span class="tsd-signature-symbol">:</span> <a href="starling.textures.concretetexture.html" class="tsd-signature-type">ConcreteTexture</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L450">lib/starling/textures/Texture.d.ts:450</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The concrete texture the texture is based on.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="scale" class="tsd-anchor"></a>
<h3>scale</h3>
<div class="tsd-signature tsd-kind-icon">scale<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L442">lib/starling/textures/Texture.d.ts:442</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The scale factor, which influences width and height properties.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="transformationmatrix" class="tsd-anchor"></a>
<h3>transformation<wbr>Matrix</h3>
<div class="tsd-signature tsd-kind-icon">transformation<wbr>Matrix<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Matrix</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L469">lib/starling/textures/Texture.d.ts:469</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The matrix that is used to transform the texture coordinates into the coordinate
space of the parent texture, if there is one. @default null</p>
</div>
<p>CAUTION: not a copy, but the actual object! Never modify this matrix!</p>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="transformationmatrixtoroot" class="tsd-anchor"></a>
<h3>transformation<wbr>Matrix<wbr>ToRoot</h3>
<div class="tsd-signature tsd-kind-icon">transformation<wbr>Matrix<wbr>ToRoot<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Matrix</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L476">lib/starling/textures/Texture.d.ts:476</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The matrix that is used to transform the texture coordinates into the coordinate
space of the root texture, if this instance is not the root. @default null</p>
</div>
<p>CAUTION: not a copy, but the actual object! Never modify this matrix!</p>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external">
<a name="width" class="tsd-anchor"></a>
<h3>width</h3>
<div class="tsd-signature tsd-kind-icon">width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L426">lib/starling/textures/Texture.d.ts:426</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The width of the texture in points.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external">
<a name="asyncbitmapuploadenabled" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> async<wbr>Bitmap<wbr>Upload<wbr>Enabled</h3>
<div class="tsd-signature tsd-kind-icon">async<wbr>Bitmap<wbr>Upload<wbr>Enabled<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L493">lib/starling/textures/Texture.d.ts:493</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Indicates if it should be attempted to upload bitmaps asynchronously when the <code>async</code> parameter
is supplied to supported methods. Since this feature is still not 100% reliable in AIR 26 (especially on
Android), it defaults to 'false' for now.</p>
</div>
<p>If the feature is disabled or not available in the current AIR/Flash runtime, the async callback will
still be executed; however, the upload itself will be made synchronously.</p>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external">
<a name="maxsize" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> max<wbr>Size</h3>
<div class="tsd-signature tsd-kind-icon">max<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L481">lib/starling/textures/Texture.d.ts:481</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns the maximum size constraint (for both width and height) for uncompressed
textures in the current Context3D profile.</p>
</div>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="dispose" class="tsd-anchor"></a>
<h3>dispose</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">dispose<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L124">lib/starling/textures/Texture.d.ts:124</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Disposes the underlying texture data. Note that not all textures need to be disposed:
SubTextures (created with 'Texture.fromTexture') just reference other textures and
and do not take up resources themselves; this is also true for textures from an
atlas.</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external">
<a name="gettexcoords" class="tsd-anchor"></a>
<h3>get<wbr>Tex<wbr>Coords</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get<wbr>Tex<wbr>Coords<span class="tsd-signature-symbol">(</span>vertexData<span class="tsd-signature-symbol">: </span><a href="starling.rendering.vertexdata.html" class="tsd-signature-type">VertexData</a>, vertexID<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, attrName<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, out<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Point</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Point</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L405">lib/starling/textures/Texture.d.ts:405</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Reads a pair of texture coordinates from the given VertexData instance and transforms
them into the current texture's coordinate system. (Remember, the VertexData instance
will always contain the coordinates in the root texture's coordinate system!)</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>vertexData: <a href="starling.rendering.vertexdata.html" class="tsd-signature-type">VertexData</a></h5>
</li>
<li>
<h5>vertexID: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> attrName: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> out: <span class="tsd-signature-type">Point</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Point</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_base" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>base</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>base<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TextureBase</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L447">lib/starling/textures/Texture.d.ts:447</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">TextureBase</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_format" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>format</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>format<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Context3DTextureFormat</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L455">lib/starling/textures/Texture.d.ts:455</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Context3DTextureFormat</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_frame" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>frame</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>frame<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Rectangle</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L413">lib/starling/textures/Texture.d.ts:413</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Rectangle</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_frameheight" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>frame<wbr>Height</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>frame<wbr>Height<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L423">lib/starling/textures/Texture.d.ts:423</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_framewidth" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>frame<wbr>Width</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>frame<wbr>Width<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L418">lib/starling/textures/Texture.d.ts:418</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_height" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>height</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>height<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L431">lib/starling/textures/Texture.d.ts:431</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_mipmapping" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>mip<wbr>Mapping</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>mip<wbr>Mapping<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L459">lib/starling/textures/Texture.d.ts:459</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_nativeheight" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>native<wbr>Height</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>native<wbr>Height<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L439">lib/starling/textures/Texture.d.ts:439</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_nativewidth" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>native<wbr>Width</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>native<wbr>Width<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L435">lib/starling/textures/Texture.d.ts:435</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_premultipliedalpha" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>premultiplied<wbr>Alpha</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>premultiplied<wbr>Alpha<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L463">lib/starling/textures/Texture.d.ts:463</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_root" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>root</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>root<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="starling.textures.concretetexture.html" class="tsd-signature-type">ConcreteTexture</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L451">lib/starling/textures/Texture.d.ts:451</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="starling.textures.concretetexture.html" class="tsd-signature-type">ConcreteTexture</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_scale" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>scale</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>scale<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/openfl/starling/blob/bce2af2/lib/starling/textures/Texture.d.ts#L443">lib/starling/textures/Texture.d.ts:443</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<a name="get_transformationmatrix" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagProtected">Protected</span> get_<wbr>transformation<wbr>Matrix</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-external">
<li class="tsd-signature tsd-kind-icon">get_<wbr>transforma