本文介绍了使用dailogbox加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用打开文件对话框将位图图像加载到墨水画布中,而不是通过确定 code之类的路径来做到这一点? pre lang ="c#"> ImageBrush ib = ImageBrush(); ib.ImageSource = BitmapImage( Uri( @" E:\ ss.jpg",UriKind.Relative)); myInkCanvas.Background = ib;

解决方案


Hi,I''m trying to loade a bitmap image into inkcanvas using open file dialog , not by determine the path like code how can do this ?

ImageBrush ib = new ImageBrush();
           ib.ImageSource = new BitmapImage(new Uri(@"E:\ss.jpg", UriKind.Relative));
           myInkCanvas.Background = ib;
解决方案


这篇关于使用dailogbox加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 20:45