Texture2D Members
The following tables list the members exposed by the Texture2D type.
Public Constructors
Name | Description | |
---|---|---|
![]() |
Texture2D | Overloaded. Initializes a new instance of the Texture2D class. |
Public Properties
Name | Description | |
---|---|---|
![]() |
Format | Gets the pixel format of this texture resource. |
![]() |
GraphicsDevice | (Inherited from GraphicsResource.) |
![]() |
Height | Gets the height of this texture resource, in pixels. |
![]() |
IsDisposed | (Inherited from GraphicsResource.) |
![]() |
LevelCount | (Inherited from Texture.) |
![]() |
LevelOfDetail | (Inherited from Texture.) |
![]() |
Name | (Inherited from GraphicsResource.) |
![]() |
Priority | (Inherited from GraphicsResource.) |
![]() |
ResourceManagementMode | Gets the class of memory allocated for this texture resource. |
![]() |
ResourceType | (Inherited from GraphicsResource.) |
![]() |
ResourceUsage | Gets a set of options identifying the behaviors of this resource. |
![]() |
Tag | (Inherited from GraphicsResource.) |
![]() |
Width | Gets the width of this texture resource, in pixels. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Dispose | Overloaded. Immediately releases the unmanaged resources used by this object. |
![]() |
Equals | Overloaded. Returns a value that indicates whether the current instance is equal to a specified object. |
![]() ![]() |
FromFile | Overloaded. Creates a texture resource from a file. |
![]() |
GenerateMipMaps | (Inherited from Texture.) |
![]() |
GetCreationParameters | (Inherited from Texture.) |
![]() |
GetData | Overloaded. Copies texture data into an array. |
![]() |
GetHashCode | Gets the hash code for this instance. |
![]() |
GetTextureInformation | (Inherited from Texture.) |
![]() |
GetType | (Inherited from Object.) |
![]() ![]() |
op_Equality | Overloaded. Compares two objects to determine whether they are the same. |
![]() ![]() |
op_Inequality | Overloaded. Compares two objects to determine whether they are different. |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
Save | (Inherited from Texture.) |
![]() |
SetData | Overloaded. Copies array data to the texture. |
![]() |
ToString | Retrieves a string representation of this object. |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
raise_Disposing | (Inherited from GraphicsResource.) |
Public Events
Name | Description | |
---|---|---|
![]() |
Disposing | (Inherited from GraphicsResource.) |