コード例 #1
0
        public void ExportScreenShot()
        {
            Worksheet ws = Instance.Default.Application.Worksheets[1];

            Helpers.CreateSomeCharts(ws, 1);
            ws.ChartObjects(1).Select();
            ScreenshotExporter exporter = new ScreenshotExporter();

            exporter.ExportSelection(System.IO.Path.GetTempFileName());
        }
コード例 #2
0
 private void DoExportSelection(FileNameMessageContent messageContent)
 {
     if (CanExportSelection() && messageContent.Confirmed)
     {
         using (WorkbookStorage.Store store = new WorkbookStorage.Store())
         {
             store.Put(Properties.StoreNames.Default.ExportPath, messageContent.Value);
         }
         UserSettings.UserSettings.Default.ExportPath =
             Bovender.PathHelpers.GetDirectoryPart(messageContent.Value);
         ScreenshotExporter exporter = new ScreenshotExporter();
         exporter.ExportSelection(messageContent.Value);
     }
 }
コード例 #3
0
ファイル: ScreenShot.cs プロジェクト: don100/Unity-A-Z
 IEnumerator TakingScreenShot()
 {
     StartCoroutine(ScreenshotExporter.Save(ScreenShotName(), albumName, true));                           //export screenshot
     takeShot = false;
     yield return(0);
 }