<div dir="ltr">I'm using QgsMapRenderer to print a set of layers with a rotation.<div>This is an excerpt from my code:</div><div><br><div>(...)</div><div><br></div><div>i = QImage(QSize(600,600), QImage.Format_ARGB32_Premultiplied)<br></div><div>r = QgsMapRenderer()<br></div><div>rect = QgsRectangle(iface.mapCanvas().extent())<br></div><div><div>r.setExtent(rect)</div><div>r.setRotation(iface.mapCanvas().rotation())</div><div>r.setOutputSize(i.size(), i.logicalDpiX())</div></div><div>r.render(p)<br></div><div><br></div><div>(...)</div></div><div><br></div><div>I'm obtaining the rotation from the one set by the user to the map canvas (which is rotated indeed) but the output image has no rotation applied.</div><div>How should rotation be defined for a renderer?</div><div><br></div><div>Giovanni</div><div><br></div></div>