I have seen a few postings for a similar questions, but none really answered my questions.
I am attempting to create a client/server application that passes a screen shot from a client computer to a server computer. I am using a module and form code that I have tested on a single computer and it works great. Now I have to pass the image
somehow from the client to the server. I am using MSWinsock between the computers (but am open to any suggestions as to other ways to pass the image). Attached is the Module I use for the screen capture.
This is the code in the form:
Set imgList1.Picture = CaptureWindow(0, 0, 0, Screen.Width / Screen.TwipsPerPixelX, Screen.Height / Screen.TwipsPerPixelY)
What's new will not always be...
What's you will...
I am attempting to pass a screen capture from a client machine to a server machine via Winsock. I would rather not save the image to the clipboard and then transfer the image, this take up too many resources.
If you have any suggestions on how to do this I would greatly appreciate the help.
What's new will not always be...
What's you will...
What you're going to want to do is save this picture as a bitmap using the SavePicture technique. Then you can open it in Binary mode, read the bytes, and send them through Winsock. However these can be quite large so JPEG compression is advisable. Then, at the other side, save the incoming bytes to a file, and then LoadPicture it into another Picturebox, or whatever you'd like to do.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
go for sastraxis way! there is some intel dll to compress jpegs, which will be really useful for you. If you can't use any quality get at least some information on how to save with RLE compression.
And remember data does not arrive in one big piece over slower connections unlike if you have your server and client running on one machine.