UtilDrawingDrawRectangleOnScreen(Screen, Rectangle, Color, Int32) Method
Draw a rectangle on the specified device screen.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void DrawRectangleOnScreen(
Screen screen,
Rectangle rc,
Color borderColor,
int borderWidth
)
Public Shared Sub DrawRectangleOnScreen (
screen As Screen,
rc As Rectangle,
borderColor As Color,
borderWidth As Integer
)
Dim screen As Screen
Dim rc As Rectangle
Dim borderColor As Color
Dim borderWidth As Integer
UtilDrawing.DrawRectangleOnScreen(screen,
rc, borderColor, borderWidth)
public:
static void DrawRectangleOnScreen(
Screen^ screen,
Rectangle rc,
Color borderColor,
int borderWidth
)
static member DrawRectangleOnScreen :
screen : Screen *
rc : Rectangle *
borderColor : Color *
borderWidth : int -> unit
No code example is currently available or this language may not be supported.
Parameters
- screen Screen
-
The device screen where to draw the rectangle.
- rc Rectangle
-
A Rectangle structure that represents the size and position of the rectangle to draw.
- borderColor Color
-
The border color of the rectangle.
- borderWidth Int32
-
The border width of the rectangle.
This is a code example.
No code example is currently available or this language may not be supported.
Dim scr As Screen = Screen.PrimaryScreen
Dim rc As New Rectangle(New Point(0, 0), New Size(100, 100))
DrawRectangleOnScreen(scr, rc, Color.Red, 4)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.