문제

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