المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : What would be the best approach for screen sharing c#



C# Programming
12-06-2012, 05:25 PM
i want to develop a small communication apps like there will be one wcf service hosted in server and one desktop client would be there. suppose two people interact in each other through wcf service. when client1 will send data to client2 then data will go to wcf service and wcf service will push the data to client2. developing basic communication application with the help of wcf service easy. i want to add one utility into our apps called screen sharing.

client1 will send his desktop screen to client2. i know it is very easy to capture desktop image and convert the whole image to byte array and then pass the byte array to client2 and client2 can convert the byte array to image and set the image to his picturebox.if i send the whole image over the network every time then performance will be bad and slow. so i need to know how people develop apps to share their screen with other and how they send minimum data over the network. i search google a lot to get actual standard though but got none.

so i request every one of this forum please discuss this issue in detail with real life concept.

My Points are
----------------

1) just tell me how could i send the difference only between two images over the network instead of sending whole image again & again. lots of image processing library available which can be use to get the difference between two images but i do not know which one is the best and would be very faster....just take few ms to get the difference between two images.

2) after extarcting difference between two images i can send the difference over the network but on the client2 side how can i apply the difference on the present image. this is very important.

3) when picturebox will be updated frequently at client2 then a flicker may be noticable. how could i avoid this flicker rather how could i achieve the smooth change over of the images on client2 side.

the way i need the help like if it would be possible then please suggest me library with code snippet which i can use to extract the difference between two images.

also tell me what routine i can use to apply the diff on the current image at client2 side.

again tell me how could i achieve the smooth change over of the images on client2 side without flickering.

lots of scholar person visit this forum every second so i would expect good discusion in detail with pesudo code in c#. thanks
tbhattacharjee