使用winsock发送位图
如何通过 winsock 发送位图而不将其保存到文件然后发送? 如果您知道如何在收到数据后将数据转换回位图,这也会很有帮助。
How could you send a bitmap over winsock without saving it to a file then sending that? It would also be helpful if you knew how to convert the data after being recieved back into a bitmap.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用什么编程语言?
基本上,您必须将位图数据存储到某种字节缓冲区中,然后通过线路发送字节,并从另一端的字节缓冲区中读回位图。
因此,有四个任务:
您具体不清楚哪些任务?
What programming language are you using?
Basically, you've got to store the bitmap data into some kind of byte buffer, then send the bytes over the wire, and read the bitmap back out of the byte buffer at the other end.
As such, there are four tasks:
Which tasks in particular are you not clear about?