borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Need Help here !)Next Topic (Printserver port outputting) New Topic New Poll Post Reply
AndreaVB Forum : Network : Capture Screen? (Winsock)!
Poster Message
Slim Shady
Level: Scholar

Registered: 11-01-2005
Posts: 46

icon Capture Screen? (Winsock)!

Hi I'm develloping a program like The Pro Rat (This is his Pic)

I know how to capture screen and put it in a image box but how to transfer the image from the server to the client?
is is like that ??
Server:
Command_Click
wskserver.senddata image1.picture

Client:
data arrival:
dim pic
wskclient.getdata pic
image1.picture=pic

cause this code didn't work
any help?!!

12-01-2005 at 07:07 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon 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.

13-01-2005 at 12:31 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Network : Capture Screen? (Winsock)!
Previous Topic (Need Help here !)Next Topic (Printserver port outputting) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder