7 #include "ExportImageForRegression.h" 13 #include <QTextStream> 16 m_width (pixmap.width ()),
17 m_height (pixmap.height ())
23 QFile file (filename);
24 if (!file.open (QIODevice::WriteOnly)) {
25 QMessageBox::critical (0,
26 QObject::tr (
"Export Image"),
27 QObject::tr (
"Cannot export file"));
30 QTextStream str (&file);
32 str << m_width <<
"x" << m_height <<
"\n";
ExportImageForRegression(const QPixmap &pixmap)
Single constructor.
void fileExport(const QString &filename) const
Export to the specified file. This is called when the Transformation has not been defined...