The width of the texture.
The height of the texture.
The texture format.
Texture2D Constructor
Initializes a new instance of the Texture2D class.
Syntax
public Texture2D( 
   int width,
   int height,
   TextureFormat textureFormat
)

Parameters

width
The width of the texture.
height
The height of the texture.
textureFormat
The texture format.
Exceptions
ExceptionDescription
Texture2D Width and Height must be greater than 1
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also