0
在我的WP7应用程序/ Silverlight项目中,我得到了一些想要访问的WP7应用程序的图像。那可能吗?访问WP7上的图像Silverlight应用程序项目
我的意思是 - 例如。
我正在创建文件夹MyImages到我的项目中。 我放在那里几巴纽,比如1.png,2.png等
我运行的应用程序(编译等)
我能修改这些文件?例如保存到
MyImages不同的东西/ 1.png
某种类型覆盖该文件吗?
---------------------------- ADDED
using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication())
{
if (myIsolatedStorage.FileExists(fileName))
{
myIsolatedStorage.DeleteFile(fileName);
}
IsolatedStorageFileStream fileStream = myIsolatedStorage.CreateFile(fileName);
BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(imageStream);
WriteableBitmap wb = new WriteableBitmap(bitmap);
wb.SaveJpeg(fileStream, wb.PixelWidth, wb.PixelHeight, 0, 85);
MessageBox.Show(imageStream.ToString());
fileStream.Close();
}
我读了一些关于IsolatedStorage的内容。 但我怎么修改MyImages/1.png? (我添加了一些问题,我保存位图,但仍然不会覆盖MyImages/1.bmp等。如何使用foldername/filename.png创建完整的URI – user1224476 2012-02-21 23:18:00