Texture2D Members

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

Public MethodTexture2DOverloaded. 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.

Public PropertyFormatGets the pixel format of this texture resource.
Public PropertyGraphicsDevice (Inherited from GraphicsResource.)
Public PropertyHeightGets the height of this texture resource, in pixels.
Public PropertyIsDisposed (Inherited from GraphicsResource.)
Public PropertyLevelCount (Inherited from Texture.)
Public PropertyLevelOfDetail (Inherited from Texture.)
Public PropertyName (Inherited from GraphicsResource.)
Public PropertyPriority (Inherited from GraphicsResource.)
Public PropertyResourceType (Inherited from GraphicsResource.)
Public PropertyTag (Inherited from GraphicsResource.)
Public PropertyTextureUsageGets the state of the related TextureUsage enumeration.
Public PropertyWidthGets the width of this texture resource, in pixels.

Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodEquals (Inherited from Object.)
Public Method StaticFromFileOverloaded. Creates a texture resource from a file.
Public MethodGenerateMipMaps (Inherited from Texture.)
Public MethodGetCreationParameters (Inherited from Texture.)
Public MethodGetDataOverloaded. Copies texture data into an array.
Public MethodGetHashCode (Inherited from Object.)
Public MethodGetTextureInformation (Inherited from Texture.)
Public MethodGetType (Inherited from Object.)
Public MethodReferenceEquals (Inherited from Object.)
Public MethodSave (Inherited from Texture.)
Public MethodSetDataOverloaded. Copies array data to the texture.
Public MethodToStringRetrieves a string representation of this object.

Protected MethodFinalizeAllows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
Protected MethodMemberwiseClone (Inherited from Object.)
Protected Methodraise_Disposing (Inherited from GraphicsResource.)

Public EventDisposing (Inherited from GraphicsResource.)

Community Additions