0

2 つのサイトがあります。ユーザー(android)とサーバー(c#)

プログラムは、ユーザーがクリックした画像を受け取る必要があります。これらのイメージ (image1) は、Android の新しいイメージ (image2) に変更され、サーバーに移動します。

私がしたことは次のとおりです。

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#を使用しています。newBitmapImageが見つかりませんでした。私が残したものはありますか?

4

1 に答える 1

0

置く:

System.Windows.Media.Imagingを使用します。

名前空間の上:)

于 2012-09-27T20:34:21.897 に答える