WPF应用程序image问题求救?

2025-04-23 23:39:16
推荐回答(2个)
回答1:

wpf里的图片赋值语句是
Image yourImg = new Image() { Source = new BitmapImage(new Uri("Images/cc.jpg", UriKind.RelativeOrAbsolute)) };

回答2:

把你的图片保存到某个路径,再设置图片不就是字符串了吗?