Viewport Constructor (Rectangle)
Creates an instance of this object.
Syntax
'Declaration
Public Sub New ( _
bounds As Rectangle _
)
public Viewport (
Rectangle bounds
)
public:
Viewport(
Rectangle bounds
)
Parameters
- bounds
Type: Rectangle
A bounding box that defines the location and size of the viewport in a render target.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
Viewport Structure
Viewport Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone