I tried to save a texure to isolated storage as an image but it doesn’t work correctly. Here’s my code :
using (var isf = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var ifs = new IsolatedStorageFileStream("result.jpg", FileMode.Create, isf))
{
var texture = CGlobal.Content.Load<Texture2D>("textures\\pattern");
texture.SaveAsJpeg(ifs, texture.Width, texture.Height);
}
}
Original texture
This is what I got