void IThumbnailManager.SetThumbnail(string name, BitmapImage thumbnail) { using (var zipArchive = new ZipArchive("AssetThumbnails.zip")) { zipArchive.Save(name, thumbnail.StreamSource); } }
public void Save(string fileName) { using (var zip = new ZipArchive(fileName)) { zip.Save(Path.ChangeExtension(fileName, ".tga"), Texture.ToStream()); zip.Save(Path.ChangeExtension(fileName, ".dat"), WidthStream); } }