}
/*!
- Saves scene rendering in window to file
+ Saves image to file according to the format
+ \param image - image
\param fileName - name of file
\param format - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG")
*/
return res;
}
+/*!
+ Saves scene rendering in window to file
+ \param fileName - name of file
+ \param format - string contains name of format (for example, "BMP"(default) or "JPEG", "JPG")
+*/
+bool SUIT_ViewWindow::dumpViewToFormat( const QString& fileName, const QString& format )
+{
+ return dumpViewToFormat( dumpView(), fileName, format );
+}
+
/*! Close event \a theEvent.
*/
void SUIT_ViewWindow::closeEvent(QCloseEvent* theEvent)
bool event(QEvent*);
virtual QImage dumpView();
- virtual bool dumpViewToFormat( const QImage&, const QString& fileName, const QString& format );
+ bool dumpViewToFormat( const QString& fileName, const QString& format );
bool onAccelAction( int );
virtual void contextMenuEvent( QContextMenuEvent* );
virtual QString filter() const;
virtual bool action( const int );
+ virtual bool dumpViewToFormat( const QImage&, const QString& fileName, const QString& format );
SUIT_Desktop* myDesktop;
SUIT_ViewManager* myManager;