Your code was really useful Agha Ali Raza. (Y)
I'm creating a application for my last year project where remote screen capture is my dominating module.
With the above code, the image is not re-sized in the picture box.
I want the complete image to be shown in the picture box.Currently only the part of the image that fits in the picture box is shown, the rest is cropped. If you could help me with this it would be great :)
Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width,Screen.PrimaryScreen.Bounds.Height);
Graphics g = Graphics.FromImage(bitmap);
g.CopyFromScreen(Point.Empty, Point.Empty, new Size(bitmap.Width, bitmap.Height));
and you are done... g has the image of the primary monitor. If you want screen from another monitor just change the coordinates :)
The screen capture code provided on this web site works fine for stand-alone applications. But if you try to run it from the service, it will show a black square instead of the screen. Sometimes changing display mode solves the problem. Does anybody know how to fix that?
Could I use this code as a base to get a handle to a specific window (not the desktop but an image of a website that is in a ie window minimized on the desktop) and get an image of it? If so, what do you think the changes might be?
Is it possible to send the captured image over a LAN using socket programming?? please we need to know this piece of information urgently...& if the answer is yes could u tell us how ?
& thank u in advance...:)
Yeah Unfortunatley:P lolzz
Posted by goshi_jinn
on 03/24/2005 01:47pm
Use TcpClient and Tcp Server Classes in the System.Net/System.Net.Socket nbamspaces to comminicate on network
serialize this image using binary formatter get the strem nd the send it on the net work vi TcpClient.Send()........... Need further help or code semple emil me at firstname.lastname@example.org.
ll these suggestion given by me keeping in mind that u know C# in general.