mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Use QTransform instead of QMatrix
This commit is contained in:
parent
154f215c38
commit
100e1c40a1
@ -348,7 +348,7 @@ void PageRender::run()
|
|||||||
QImage img;
|
QImage img;
|
||||||
img.loadFromData(data);
|
img.loadFromData(data);
|
||||||
if (degrees > 0) {
|
if (degrees > 0) {
|
||||||
QMatrix m;
|
QTransform m;
|
||||||
m.rotate(degrees);
|
m.rotate(degrees);
|
||||||
img = img.transformed(m, Qt::SmoothTransformation);
|
img = img.transformed(m, Qt::SmoothTransformation);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user