using System.Drawing;
Graphics g;
using (g = Graphics.FromHwnd(IntPtr.Zero))
{
g.DrawEllipse(Pens.Red, x,y, 20, 20);
}
This piece of code code worked !!!
문제
In my application , i want to print / draw dots (or any shapes) on the given coordinates by the application.I want to draw the dots / shape on the desktop screen.
Are there any function in C# to print/draw the dots on given screen coordinates ?
IDE - Visual Studio 2012
Thanks in advance
해결책 2
using System.Drawing;
Graphics g;
using (g = Graphics.FromHwnd(IntPtr.Zero))
{
g.DrawEllipse(Pens.Red, x,y, 20, 20);
}
This piece of code code worked !!!
다른 팁
You can draw your shapes on transparent top-level window. See Layered Windows.