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 Constructor

Initializes a new instance of the Texture2D class.

NameDescription
Texture2D (GraphicsDevice, Int32, Int32, Int32, ResourceUsage, SurfaceFormat) 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.
Texture2D (GraphicsDevice, Int32, Int32, Int32, ResourceUsage, SurfaceFormat, ResourceManagementMode) Creates an uninitialized Texture2D resource of the given dimensions, specifying the memory management mode for the resource. To initialize a Texture2D from an existing file, see the static method ContentManager.Load or Texture2D.FromFile.
Show:
© 2015 Microsoft