开发者

How can I make a drawing surface so people can draw on my Windows Form application?

I'm making a simple chat program for me and my friends as a tech demo. I had the idea to have a small drawing pad thing that would be shared between all connected users.

What could I use in this situation (control wise)?

I know I can convert an image to a byte[] and pass that开发者_如何学Python to everyone, but I'd need to use a pictureBox to get said image.

Thanks for the help! Doesn't have to be step by step instruction, just a guideline.


There is lot more to write here that just passing arrays. The syncing of the picture needs to be fast and passing array is not the best idea. Instead, try sending events to each chat client.

There are many ways. You have to decide which is fast enough for you.

Study TightVNC's source code to gain in-depth knowledge. Here is the link.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜