自动保存图像 [英] Automatically Save Image
本文介绍了自动保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在让我向干扰我的问题的各方道歉之前.
我只想问问题以学习C#.
我问,还有其他方法可以保存PictureBox中包含的图像吗?
我在saveialog期间使用它.
在某些情况下,我想自动保存图像
自开始以来就存在的路径和文件名.
在此先感谢!
before asking me to apologize to the parties that interfere with my question.
I just want to ask questions to learn C #.
I ask, is there another way to save the images contained in a PictureBox?
I use this during savedialog.
in some cases I want to save images automatically
with the path and filename that has existed since the beginning.
Thanks in advance!
推荐答案
如果要自动保存图像,则可以使用计时器将图像保存在Timer.Tick
事件处理程序中.
看起来像这样:
Hi,
if you want to save your image automatically, you could use a timer that saves the image in theTimer.Tick
event handler.
It would look something like this:
private void timer1_Tick(object sender, EventArgs e)
{
pictureBox1.Image.Save("C:\\Test.bmp");
}
您只需使用此方法将图像存储为文件:
使用BitMap类的Save方法
Hi,
You just use this method to store image as file:
Use BitMap class Save method
我认为这是您(biggner)练习的好网站.
此处 [
i think this is the good site for you(biggner) to practice..,
Here[^]
这篇关于自动保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文