<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture.html"title="class in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture3D.html"title="class in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Next Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">Microsoft.Xna.Framework.Graphics.GraphicsResource</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture.html"title="class in Microsoft.Xna.Framework.Graphics">Microsoft.Xna.Framework.Graphics.Texture</a></li>
<h3>Fields inherited from class Microsoft.Xna.Framework.Graphics.<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></h3>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html#Texture2D(Microsoft.Xna.Framework.Graphics.GraphicsDevice, int, int)">Texture2D</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
int width,
int height)</code>
<divclass="block">Creates a new instance of this object.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code> </code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html#Texture2D(Microsoft.Xna.Framework.Graphics.GraphicsDevice, int, int, boolean, Microsoft.Xna.Framework.Graphics.SurfaceFormat)">Texture2D</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
int width,
int height,
boolean mipMap,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SurfaceFormat.html"title="enum in Microsoft.Xna.Framework.Graphics">SurfaceFormat</a> format)</code>
<divclass="block">Creates a new instance of this object.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<divclass="block">Immediately releases the unmanaged resources used by this Object.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html#FromStream(Microsoft.Xna.Framework.Graphics.GraphicsDevice, java.io.InputStream)">FromStream</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
java.io.InputStream stream)</code>
<divclass="block">Loads texture data from a stream.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html#FromStream(Microsoft.Xna.Framework.Graphics.GraphicsDevice, java.io.InputStream, int, int, boolean)">FromStream</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
<h3>Methods inherited from class Microsoft.Xna.Framework.Graphics.<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture.html"title="class in Microsoft.Xna.Framework.Graphics">Texture</a></h3>
<h3>Methods inherited from class Microsoft.Xna.Framework.Graphics.<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></h3>
<pre>public Texture2D(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
int width,
int height)</pre>
<divclass="block">Creates a new instance of this object.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>graphicsDevice</code> - The device.</dd><dd><code>width</code> - Texture width.</dd><dd><code>height</code> - Texture height.</dd></dl>
<pre>public Texture2D(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
int width,
int height,
boolean mipMap,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SurfaceFormat.html"title="enum in Microsoft.Xna.Framework.Graphics">SurfaceFormat</a> format)</pre>
<divclass="block">Creates a new instance of this object.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>graphicsDevice</code> - The device.</dd><dd><code>width</code> - Texture width.</dd><dd><code>height</code> - Texture height.</dd><dd><code>mipMap</code> - True to generate a full mipmap chain; false otherwise.</dd><dd><code>format</code> - Texture data format.</dd></dl>
<divclass="block"><strong>Description copied from class: <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Dispose(boolean)">GraphicsResource</a></code></strong></div>
<divclass="block">Immediately releases the unmanaged resources used by this Object.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html#Dispose(boolean)">Dispose</a></code> in class <code><ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsResource.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsResource</a></code></dd>
<pre>public static <ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> FromStream(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
java.io.InputStream stream)</pre>
<divclass="block">Loads texture data from a stream.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>graphicsDevice</code> - A graphics device.</dd><dd><code>stream</code> - Data stream from one of the following file types: .gif, .jpg or .png.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The created texture.</dd></dl>
<pre>public static <ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> FromStream(<ahref="../../../../Microsoft/Xna/Framework/Graphics/GraphicsDevice.html"title="class in Microsoft.Xna.Framework.Graphics">GraphicsDevice</a> graphicsDevice,
java.io.InputStream stream,
int width,
int height,
boolean zoom)</pre>
<divclass="block">Loads texture data from a stream.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>graphicsDevice</code> - A graphics device.</dd><dd><code>stream</code> - Data stream from one of the following file types: .gif, .jpg or .png.</dd><dd><code>width</code> - The requested image width.</dd><dd><code>height</code> - The requested image height.</dd><dd><code>zoom</code> - Control the aspect ratio when zooming (scaling); set to false to maintain a constant aspect ratio, true otherwise. See remarks.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The created texture.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../../System/ArgumentNullException.html"title="class in System">ArgumentNullException</a></code> - graphicsDevice or stream is null.</dd></dl>
<divclass="block">Gets a copy of 2D texture data, specifying a start index and number of elements. Reference page contains code sample.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>data</code> - Array of data.</dd><dd><code>startIndex</code> - Index of the first element to get.</dd><dd><code>elementCount</code> - Number of elements to get.</dd></dl>
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> rect,
T[] data,
int startIndex,
int elementCount)</pre>
<divclass="block">Gets a copy of 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>level</code> - Mipmap level.</dd><dd><code>rect</code> - The section of the texture to copy. null indicates the data will be copied from the entire texture.</dd><dd><code>data</code> - Array of data.</dd><dd><code>startIndex</code> - Index of the first element to get.</dd><dd><code>elementCount</code> - Number of elements to get.</dd></dl>
<divclass="block">Sets 2D texture data, specifying a start index, and number of elements.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>data</code> - Array of data.</dd><dd><code>startIndex</code> - Index of the first element to set.</dd><dd><code>elementCount</code> - Number of elements to set.</dd></dl>
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> rect,
T[] data,
int startIndex,
int elementCount)</pre>
<divclass="block">Sets 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>level</code> - Mipmap level.</dd><dd><code>rect</code> - A bounding box that defines the position and location (in pixels) of the data.</dd><dd><code>data</code> - Array of data.</dd><dd><code>startIndex</code> - Index of the first element to set.</dd><dd><code>elementCount</code> - Number of elements to set.</dd></dl>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture.html"title="class in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture3D.html"title="class in Microsoft.Xna.Framework.Graphics"><spanclass="strong">Next Class</span></a></li>