问题
I'd like to create a simple remote desktop application (you can view the screen remotely and interact with it). As a first step, I've tried taking screenshots, 1 per second, compressing them to JPEG and sending them over (without interaction), but I've found that even over LAN this is very slow.
Do you have any hints on how to do this better? Is there C# sample code for projects like this?
回答1:
You might consider looking at VNC's implementation. VNC is open source and does what you want. I know of an open-source .NET client for VNC: http://dotnetvnc.sourceforge.net/
Hopefully this will give you some direction for your project.
回答2:
Just-in-time idea, if you don`t want to use vnc - and want to implement this yourself (for learning, how to invent wheels, for example) - send not full screenshot, but changes from previous - somethins like *.avi format (I forgot details, but something like: one full card, 15 changes, one full card, 15 changes and so on).
来源:https://stackoverflow.com/questions/1595170/c-sharp-non-windows-remote-desktop