Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Capture Screen? (Winsock)!
Well, thinking of several ways. First that poped on to my mind (the easiest one) is thay you can loop through all Points on the picturebox and send them. SOmething like
for i=0 to picture1.width
for j=0 to picture1.height
winsock1.senddata picture1.point (i, j)
next j
next i
Then you can restore image on the similar way on recepients side with pset method.
Another way is to save image to a byte array, transfer this array over winsock, and then load image from byte array on recepient side. Search internet on how to save/load image to byte array.
I also remember I have read somewhere you can declare a property bag object, and save image in it, then send this object over winsock, but you would need to explore it by yourself.
____________________________
If you find the answer helpful, please mark this topic as solved.
|