以下是将图像保存到独立存储的正确方法吗?
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);
}
}