I think you are right:
#include <QtGui>
int main(int argc, char **argv){
qDebug
() <<
"QImageIOHandler::Size:" << reader.
supportsOption(QImageIOHandler::Size);
qDebug
() <<
"QImageIOHandler::ScaledSize:" << reader.
supportsOption(QImageIOHandler::ScaledSize);
}
#include <QtGui>
int main(int argc, char **argv){
QApplication app(argc, argv);
QImageReader reader("img.jpg", "JPEG");
qDebug() << "QImageIOHandler::Size:" << reader.supportsOption(QImageIOHandler::Size);
qDebug() << "QImageIOHandler::ScaledSize:" << reader.supportsOption(QImageIOHandler::ScaledSize);
}
To copy to clipboard, switch view to plain text mode
$ ./imr
QImageIOHandler::Size: true
QImageIOHandler::ScaledSize: true
Just note scaled loading would work even if ScaledSize returned false here. Only that the whole image would be loaded first and scaled later.
Bookmarks