Texture2D Members
The following tables list the members exposed by the Texture2D type.
Public Constructors
Name | Description | |
---|---|---|
Texture2D | Overloaded. Creates an uninitialized Texture2D resource of the specified dimensions. To initialize a Texture2D from an existing file, see the static method ContentManager.Load. |
Public Properties
Name | Description | |
---|---|---|
Bounds | Gets the size of this resource. | |
Format | (Inherited from Texture.) | |
GraphicsDevice | (Inherited from GraphicsResource.) | |
Height | Gets the height of this texture resource, in pixels. | |
IsDisposed | (Inherited from GraphicsResource.) | |
LevelCount | (Inherited from Texture.) | |
Name | (Inherited from GraphicsResource.) | |
Tag | (Inherited from GraphicsResource.) | |
Width | Gets the width of this texture resource, in pixels. |
Public Methods
Name | Description | |
---|---|---|
Dispose | (Inherited from GraphicsResource.) | |
Equals | (Inherited from Object.) | |
FromStream | Overloaded. Methods for loading an image. | |
GetData | Overloaded. Copies texture data into an array. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
SaveAsJpeg | Saves texture data as a .jpg. | |
SaveAsPng | Saves texture data as a .png. | |
SetData | Overloaded. Sets data to the texture. | |
ToString | (Inherited from GraphicsResource.) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from GraphicsResource.) | |
MemberwiseClone | (Inherited from Object.) |
Public Events
Name | Description | |
---|---|---|
Disposing | (Inherited from GraphicsResource.) |