Export (0) Print
Expand All

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)

public int Width { get; }

Property Value

Type: System.Int32
The width of this texture resource, in pixels.

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.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft