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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top