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.

Public PropertyBoundsGets the size of this resource.
Public PropertyFormat(Inherited from Texture.)
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 PropertyName(Inherited from GraphicsResource.)
Public PropertyTag(Inherited from GraphicsResource.)
Public PropertyWidthGets the width of this texture resource, in pixels.

Public MethodDispose(Inherited from GraphicsResource.)
Public MethodEquals(Inherited from Object.)
Public Method StaticFromStreamOverloaded. Methods for loading an image.
Public MethodGetDataOverloaded. Copies texture data into an array.
Public MethodGetHashCode(Inherited from Object.)
Public MethodGetType(Inherited from Object.)
Public MethodSaveAsJpegSaves texture data as a .jpg.
Public MethodSaveAsPngSaves texture data as a .png.
Public MethodSetDataOverloaded. Sets data to the texture.
Public MethodToString(Inherited from GraphicsResource.)

Protected MethodFinalize(Inherited from GraphicsResource.)
Protected MethodMemberwiseClone(Inherited from Object.)

Public EventDisposing(Inherited from GraphicsResource.)

Community Additions