Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
currentFrameNumber = nextFrameNumber++;
QSize scaledSize = reader->scaledSize();
if (scaledSize.isValid() && (scaledSize != info.pixmap.size()))
- currentPixmap = QPixmap::fromImage( info.pixmap.toImage().scaled(scaledSize) );
+ currentPixmap = info.pixmap.scaled(scaledSize);
else
currentPixmap = info.pixmap;
nextDelay = speedAdjustedDelay(info.delay);
}
/*!
- \overload
+ \overload
- This convenience function loads the \a matrix into a
- QTransform and calls the overloaded function.
- */
+ This convenience function loads the \a matrix into a
+ QTransform and calls the overloaded function.
+*/
QPixmap QPixmap::transformed(const QMatrix &matrix, Qt::TransformationMode mode) const
{
return transformed(QTransform(matrix), mode);