如何生成屏幕截图并将其保存在另一个系统中? [英] How can i generate screenshots and save them in another system?

查看:89
本文介绍了如何生成屏幕截图并将其保存在另一个系统中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何生成屏幕截图并将其保存在另一个系统中?

我可以捕获屏幕截图并将其保存在同一台计算机中.但是我想将其保存到同一网络中的另一个系统.

How can i generate screenshots and save them in another system?

i can capture screenshots and save it in the same machine.But i want to save it to another system in the same network.

its a windows application.

推荐答案

Google for
Google for Screen Capture[^] and you''ll get what you want!



我正在使用以下代码生成屏幕截图.
hi
i am generating screenshots using the following code.
private void timer1_Tick(object sender, EventArgs e)
        {
            this.Hide();
            System.Drawing.Bitmap Bitmap;
            Graphics Graps;
            Bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
            Graps = Graphics.FromImage(Bitmap);
            string s = comboBox1.SelectedItem.ToString()+" "+ DateTime.Now.ToString();
            s = s.Replace(':', '.');
            Graps.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
            Bitmap.Save(@"\\192.168.1.10\Temparea\Screenshotseg\" + s + ".Jpeg", ImageFormat.Jpeg);

            //Bitmap.Save(@"Z:\\Screenshotseg\" + s + ".jpeg", ImageFormat.Jpeg);
            
            //MessageBox.Show(Application.StartupPath.ToString());
            //Bitmap.Save(@"Screenshots\" + s + ".jpeg", ImageFormat.Jpeg);
            //MessageBox.Show("Your Screen Shot Save in Desktop");
            this.Show();
        }


bmpScreenShot.Save(@"\\192.168.1.10\Temparea\Screenshotseg\" + s + ".Jpeg", ImageFormat.Jpeg);


这篇关于如何生成屏幕截图并将其保存在另一个系统中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆