GraphicsDevice.ScissorRectangle Property

Gets or sets the rectangle used for scissor testing. By default, the size matches the render target size.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in

public Rectangle ScissorRectangle { get; set; }

Property Value

If scissor testing is enabled, the rendering area within the render target is defined.

The scissor rectangle is used as a rectangular clipping region. Use ScissorTestEnable to enable scissor testing.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions