Is there a way to make a screen recorder in C#? If so, does anybody know of any tutorials I could use or any information on the subject?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Take a look at this VB.NET code.
I took the VB.net code from Lucas McCoy and turned it into C#. This records for 5 seconds and saved the gif to desktop. PS: I get an error sometimes when the last screenshot is still aborting via the thread and then the stream tries to read it.
Very slow code.
These are references I had to add:
For the Thread Exception, you can avoid that with this code
and put the flag as static private bool (global) and put it instead of the true value in the while loop:
that how you can avoid threading overlap on resource. I know that is not the subject but I want to share this piece of info because threads always make the debugging nasty.
Regards, Fawaz