简体   繁体   English

如何制作绘图表面,以便人们可以在Windows Form应用程序上绘图?

[英]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 to everyone, but I'd need to use a pictureBox to get said image. 我知道我可以将图像转换为byte []并将其传递给每个人,但是我需要使用pictureBox来获取所述图像。

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. 学习TightVNC的源代码以获得深入的知识。 Here is the link. 链接在这里。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何做到这一点,以便用户可以快速更改到我的应用程序 - How can I make it so the user can quickly change to my application 如何在opengl中更改相机,以便可以在屏幕上看到整个表面图? - How alter the camera in opengl so I can see my entire surface plot on screen? 如何使Style具有通用性,以便我可以在我的整个应用程序中使用它? - How to make a Style generic so I can use it in my entire application? 如何在我的表格中从另一个班级画一条线? - How can I draw a line in my form from another class? 如何使Windows窗体能够执行并显示数据库查询? - How can I make my Windows Form to do and display my database query? 用c#编写应用程序时,如何在Windows Surface Pro上获得触摸输入(屏幕上的位置)? - How can I get the touch input(positions on the screen) on the Windows Surface Pro when writing the application in c#? 我在Windows窗体应用程序中看不到我的更改 - I can't see my changes in Windows Form Application 如何跨窗口传递变量,以便可以在每个窗口中使用该变量,或者使其对整个程序可见? - How can I pass a variable across windows so that it can be used in every window or just make it visible to my entire program? 我可以在MS Surface上使用我的语音应用程序(Win 7)吗? - Can I use my voice application (Win 7) on MS Surface? 如何制作不具有方形形状的Windows应用程序? - How can I make a windows application that doesn't have a square form shape?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM