Method ToScreen
ToScreen(Rectangle)
Converts a rectangle from local viewport coordinates to screen coordinates.
Declaration
public Rectangle ToScreen(Rectangle local)
Parameters
Type | Name | Description |
---|---|---|
Rectangle | local | The rectangle in local viewport coordinates to convert. |
Returns
Type | Description |
---|---|
Rectangle | The rectangle in screen coordinates. |
ToScreen(RectangleF)
Converts a rectangle from local viewport coordinates to screen coordinates, allowing for fractional pixel values.
Declaration
public RectangleF ToScreen(RectangleF local)
Parameters
Type | Name | Description |
---|---|---|
RectangleF | local | The rectangle in local viewport coordinates to convert, with floating-point precision. |
Returns
Type | Description |
---|---|
RectangleF | The rectangle in screen coordinates, with floating-point precision. |