This topic has not yet been rated - Rate this topic

Texture2D Members

The following tables list the members exposed by the Texture2D type.

Name Description
Public Method 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 or Texture2D.FromFile.
Name Description
Public Property Format Gets the pixel format of this texture resource.
Public Property GraphicsDevice (Inherited from GraphicsResource.)
Public Property Height Gets the height of this texture resource, in pixels.
Public Property IsDisposed (Inherited from GraphicsResource.)
Public Property LevelCount (Inherited from Texture.)
Public Property LevelOfDetail (Inherited from Texture.)
Public Property Name (Inherited from GraphicsResource.)
Public Property Priority (Inherited from GraphicsResource.)
Public Property ResourceType (Inherited from GraphicsResource.)
Public Property Tag (Inherited from GraphicsResource.)
Public Property TextureUsage Gets the state of the related TextureUsage enumeration.
Public Property Width Gets the width of this texture resource, in pixels.
Name Description
Public Method Dispose Overloaded. Immediately releases the unmanaged resources used by this object.
Public Method Equals (Inherited from Object.)
Public Method Static FromFile Overloaded. Creates a texture resource from a file.
Public Method GenerateMipMaps (Inherited from Texture.)
Public Method GetCreationParameters (Inherited from Texture.)
Public Method GetData Overloaded. Copies texture data into an array.
Public Method GetHashCode (Inherited from Object.)
Public Method GetTextureInformation (Inherited from Texture.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method Save (Inherited from Texture.)
Public Method SetData Overloaded. Copies array data to the texture.
Public Method ToString Retrieves a string representation of this object.
Name Description
Protected Method Finalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method raise_Disposing (Inherited from GraphicsResource.)
Name Description
Public Event Disposing (Inherited from GraphicsResource.)
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ