Texture2D.Height Property

Gets the height of this texture resource, in pixels.

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

public int Height { get; }

Property Value

The height 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.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: