Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Texture2D Members

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

NameDescription
Public MethodTexture2D 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.

NameDescription
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.

NameDescription
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.

NameDescription
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.)

NameDescription
Public EventDisposing (Inherited from GraphicsResource.)

Community Additions

ADD
Show:
© 2015 Microsoft