14.4: Image › Rotate Canvas 90° Clockwise and Counterclockwise; quarter turns on whole pixels copy exactly
This commit is contained in:
21 files changed
+419
-54
No files matched your search
@@ -92,7 +92,7 @@ QTransform BrushRaster::pixelToDocument(const LayerTransform &transform, int wid
|
||||
const QPointF center = transform.center();
|
||||
QTransform map;
|
||||
map.translate(center.x(), center.y());
|
||||
map.rotateRadians(transform.radians());
|
||||
map.rotate(transform.degrees());
|
||||
map.scale(transform.size.width() / width * (transform.flipX ? -1 : 1),
|
||||
transform.size.height() / height * (transform.flipY ? -1 : 1));
|
||||
map.translate(-width / 2.0, -height / 2.0);
|
||||
|
||||
Reference in new issue
Block a user