次の方法で共有


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)

Syntax

public int Height { get; }

Property Value

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