Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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