Draw on the screen, C#
I seek a C# method that can print data on the screen 'externally'.
Basically, I have an DX9 application, and I want to 'paint on it.'. I tried theGraphics.FromHwnd(0);
method, but its flickering and its not as good as I want it to be.
I know theres a lot of application like Skype that can draw on the monitor, 'above' all other 开发者_如何学Pythonapplications, but I can't understand how to do it programically.
I will be very greatful if you could help me.
MarkJust create a form whose
form.TopMost=true
You may want to create a transparent form so that the form itself is invisible.
You may even want to create a non-rectangular form.
Sometimes overriding the OnBackgroundPaint
event will produce fewer flickers. You might want to try that.
Otherwise, I don't know what your code is doing to cause the flickers in the first place.
精彩评论