0
有两个网站;用户(android)和服务器(c#)使用后面的代码更改新图像,c#和bitmapImage无法找到
程序需要接收用户点击的图像。这些图像(image1)将更改为新的图像(图像2)在android中同样到服务器。
我所做的是:
1- split the data
2- check if the images gets a new ID number (new ID number refer to changes been made)
3- change the old image with the new image
代码:
if (berjaya[23].Equals(70))
{
//code where the old image is changed
pictureBox1.Image = new BitmapImage(new Uri(@"\\HospitalIcon\\images\\a3_01.gif"));
}
不幸的是,我竟然不知道如何使用代码隐藏换一个新形象。我正在使用C#。新的BitmapImage
说无法找到。有什么我遗漏了吗?
WPF或Winforms? – 2012-07-23 05:40:56