0
以下是將圖像保存到獨立存儲的正確方法嗎?Silverlight將圖像保存到IsolatedStorage
public void imageToStore(Image imageIn)
{
IsolatedStorageFile iso = IsolatedStorageFile.GetUserStoreForApplication();
IsolatedStorageFileStream s = new IsolatedStorageFileStream(imageIn.Name, FileMode.Create, iso);
using (StreamWriter writer = new StreamWriter(s))
{
writer.Write(imageIn);
}
}
+1不錯,Imagetools看起來像它所需要的。 – AnthonyWJones 2010-01-31 17:02:16