I am getting X and Y coordinates from an external controller through its own SDK.
So, I want to transform this coordinates in an circle translucent and simulate a mouse cursor.
I have the following code, but I only get draw translucent circles, and I cannot "erase" previous circles.
I would like draw translucent circles and erase them when I draw the next circle. I should draw some kind of transition between a coordinates and the following coordinates for simulating "movement". Another issues I have found, I cannot draw circle over standard components as buttons, text box, etc…
//...
System.Drawing.Graphics g = this.CreateGraphics();
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
System.Drawing.Color translucentYellow = System.Drawing.Color.FromArgb(128, Color.Yellow);
System.Drawing.SolidBrush aBrush = new System.Drawing.SolidBrush(translucenYellow);
g.CompositingQuality = system.Drawing.Drawing2D.CompositingQuality.GammaCorrected;
g.FillEllipse(aBrush, X, Y, width, height);
//.….