Texture2D.Width Property

Gets the width of this texture resource, in pixels.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

Syntax

public int Width { get; }

Property Value

The width of this texture resource, in pixels.

Remarks

For Windows Phone, the maximum rendertarget texture size is 8 MB; make sure when creating a new texture that the width*height*format <= 8 Mb.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP