Method ViewportToScreen
ViewportToScreen(in Rectangle)
Converts a Viewport-relative location and size to a screen-relative location and size.
public Rectangle ViewportToScreen(in Rectangle viewport)
Parameters
viewport
RectangleViewport-relative location and size.
Returns
- Rectangle
Screen-relative location and size.
Remarks
Viewport-relative means relative to the top-left corner of the inner rectangle of the Padding.
ViewportToScreen(in Point)
Converts a Viewport-relative location to a screen-relative location.
public Point ViewportToScreen(in Point viewportLocation)
Parameters
viewportLocation
PointViewport-relative location.
Returns
- Point
Screen-relative location.
Remarks
Viewport-relative means relative to the top-left corner of the inner rectangle of the Padding.