如何捕获图像并将其保存到某个文件? [英] How do I capture an Image and save it to a a certain file?
本文介绍了如何捕获图像并将其保存到某个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Image控件中有一个图像...
< Grid>
< Image Height = 164 HorizontalAlignment = 左 Margin = 24,67,0,0名称= image1拉伸= 填写 VerticalAlignment = < span class =code-string> Top Width = 255来源= / CaptureImage; component / Images / Penguins.jpg />
< Button Content = 按钮高度= 23 HorizontalAlignment = 左 Margin = 72,264,0,0 Name = button1 VerticalAlignment = 顶部宽度= 75 Click = button1_Click />
< / 网格 >
我的桌面页面上有一个文件。该文件的名称是我的WPF图像。我的问题是,如何捕获此图像并将其保存到我的文件中?需要帮助!!非常感谢!!
解决方案
Hey guys, I'm new to wpf. I need help with this. I'm using WPF Browser Application to do this project.
I have an image in the Image control...
<Grid>
<Image Height="164" HorizontalAlignment="Left" Margin="24,67,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="255" Source="/CaptureImage;component/Images/Penguins.jpg" />
<Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="72,264,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
</Grid>
I have a file on my desktop page. The name of the file is "My WPF Images". My problem is, how do I capture this image and save it to my file? Help needed!! Thank you very much!!
解决方案
这篇关于如何捕获图像并将其保存到某个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文