Texture2D Constructor

Creates an uninitialized Texture2D resource of the specified dimensions. To initialize a Texture2D from an existing file, see the static method ContentManager.Load.

Overload List

Name Description
Texture2D (GraphicsDevice, Int32, Int32) Creates a new instance of this object.
Texture2D (GraphicsDevice, Int32, Int32, Boolean, SurfaceFormat) Creates a new instance of this object.

See Also

Reference

Texture2D Class
Texture2D Members
Microsoft.Xna.Framework.Graphics Namespace