在用图像填充矩形时出现问题

在用图像填充矩形时出现问题

本文介绍了在用图像填充矩形时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我的wpf表单上有一个反应堆,名为rectGear


现在我正尝试用图像填充矩形

I have a reactanle on my wpf form named rectGear


Now im trying to fill with the rectanle with an image

ImageBrush g_modeImageBrush = new ImageBrush();

g_modeImageBrush.ImageSource = new BitmapImage(new Uri(@"/Plug_in_Charging.png", UriKind.Relative));

rectGear.Fill = g_modeImageBrush;



图片位于项目下.


但是我正在得到FileNotFoundException

有关此的任何帮助.



Image is located under the project.


But Im getting FileNotFoundException

Any help regarding this.

推荐答案


这篇关于在用图像填充矩形时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 23:48