Texture2D Members

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

NameDescription
Public MethodTexture2DOverloaded. Initializes a new instance of the Texture2D class.

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 PropertyResourceManagementModeGets the class of memory allocated for this texture resource.
Public PropertyResourceType (Inherited from GraphicsResource.)
Public PropertyResourceUsageGets a set of options identifying the behaviors of this resource.
Public PropertyTag (Inherited from GraphicsResource.)
Public PropertyWidthGets the width of this texture resource, in pixels.

NameDescription
Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodEqualsOverloaded. Returns a value that indicates whether the current instance is equal to a specified 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 MethodGetHashCodeGets the hash code for this instance.
Public MethodGetTextureInformation (Inherited from Texture.)
Public MethodGetType (Inherited from Object.)
Public Method Staticop_EqualityOverloaded. Compares two objects to determine whether they are the same.
Public Method Staticop_InequalityOverloaded. Compares two objects to determine whether they are different.
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.)
Show: