]> Creatis software - clitk.git/blobdiff - vv/vvMainWindow.cxx
First githering option for animated gif using CxImage option
[clitk.git] / vv / vvMainWindow.cxx
index c08462cd0ad6efc05236fdc9d9eefadd37d5eda0..46b0ecbb2fd9f2bb1a7656876978d531c734631c 100644 (file)
@@ -2822,6 +2822,13 @@ void vvMainWindow::SaveScreenshot(QVTKWidget *widget)
                                      tr("Number of loops (0 means infinite):"), 0, 0, 1000000000, 1, &ok);
       if(ok)
         gif->SetLoops(loops);
+
+      // Dithering
+      QString msg = "Would you like to activate dithering?";
+      QMessageBox msgBox(QMessageBox::Question, tr("Dithering"),msg, 0, this);
+      msgBox.addButton(tr("Yes"), QMessageBox::AcceptRole);
+      msgBox.addButton(tr("No"), QMessageBox::RejectRole);
+      gif->SetDither(msgBox.exec() == QMessageBox::AcceptRole);
     }
 #endif
 #ifdef VTK_USE_VIDEO_FOR_WINDOWS