How can I "hook" gdi+ graphics from other forms and redraw them on a remote computer?

  • Thread starter Thread starter valaki2018
  • Start date Start date
V

valaki2018

Guest
The programming language doesnt matter it can be Win32 C++ C# or VB.

My goal would be to capture graphics (I think with a hook) like this:

private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.SmoothingMode = Drawing.Drawing2D.SmoothingMode.HighQuality;
e.Graphics.DrawLine(WhiteThickPen, 5, 5, pictureBox2.Width - 6, pictureBox2.Height - 6);
e.Graphics.DrawLine(WhiteThickPen, pictureBox2.Width - 6, 5, 5, pictureBox2.Height - 6);
}

Get thier arguments and send them over to the remote machine as text, the other machine then would draw it.

I only need to know how to "hook" those graphics, I know how to send them and redraw it...

I dont want to send bitmap over the internet Because it requires more bandwidth than sending text and Encoding it to actual commands like drawline and Quality would be great without compressing it.

Continue reading...
 
Back
Top