Beispiel #1
0
 private static void Export(IEnumerable <SpriteFragment> fragments, string imageFile)
 {
     foreach (ExportFormat format in (ExportFormat[])Enum.GetValues(typeof(ExportFormat)))
     {
         string exportFile = SpriteExporter.Export(fragments, imageFile, format);
         ProjectHelpers.AddFileToProject(imageFile, exportFile);
     }
 }
Beispiel #2
0
        private async static Task Export(IEnumerable <SpriteFragment> fragments, string imageFile, SpriteDocument sprite)
        {
            foreach (ExportFormat format in (ExportFormat[])Enum.GetValues(typeof(ExportFormat)))
            {
                string exportFile = await SpriteExporter.Export(fragments, sprite, imageFile, format);

                ProjectHelpers.AddFileToProject(imageFile, exportFile);
            }
        }