<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>I agree. It would be nice to have this in QGIS core.</p>
<p>Andreas</p>
<p>On 2016-12-21 09:44, Richard Duivenvoorde wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="white-space: nowrap;">On 12/20/2016 09:43 PM, Larry Shaffer wrote:</span>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span style="white-space: nowrap;">    2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen</span><br /><span style="white-space: nowrap;">    <<a href="mailto:bo.victor.thomsen@gmail.com">bo.victor.thomsen@gmail.com</a> <mailto:<a href="mailto:bo.victor.thomsen@gmail.com">bo.victor.thomsen@gmail.com</a>>>:</span><br /><br /><span style="white-space: nowrap;">        Hi List-members -</span><br /><br /><span style="white-space: nowrap;">        Is there in Qgis a function / button / menu-item / short-cut /</span><br /><span style="white-space: nowrap;">        plugin to make a simple bitmap copy of the current content of</span><br /><span style="white-space: nowrap;">        the map-canvas and save it to the clipboard ? My users need this</span><br /><span style="white-space: nowrap;">        to make a copy of the map and paste into MS-Word or other software.</span><br /><br /><br /><span style="white-space: nowrap;">While not part of the QGIS app, one could use this PyQGIS snippet to do</span><br /><span style="white-space: nowrap;">so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS</span><br /><span style="white-space: nowrap;">console:</span><br /><br /><span style="white-space: nowrap;">from PyQt4.QtGui import *</span><br /><span style="white-space: nowrap;">QApplication.clipboard().setImage(QImage(QPixmap.grabWidget(iface.mapCanvas())))</span><br /><br /><span style="white-space: nowrap;">This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a</span><br /><span style="white-space: nowrap;">paint device, like an image. Code can be wrapped in a plugin, then have</span><br /><span style="white-space: nowrap;">some key bindings applied (would need some more PyQt).</span></blockquote>
<br /><span style="white-space: nowrap;">Tested here on Linux: working fine too!!</span><br /><br /> I think this looks like a nice (easy?) feature request to make this core functionality?<br /><br /><span style="white-space: nowrap;">- right-click menu on mapcanvas with:</span><br /><span style="white-space: nowrap;">  - save Map to Clipboard</span><br /><span style="white-space: nowrap;">  (- set size of MapCanvas to...) I know this is also often needed...</span><br /><br /><span style="white-space: nowrap;">- one or two buttons to do this?</span><br /><br /> While a plugin works for older versions, I think it should not be needed for a teacher/user to hear: install QGIS and add the following plugins.... (while that is actually what I often have to say....)<br /><br /><span style="white-space: nowrap;">I think I could even try to do this :-)</span><br /><br /><span style="white-space: nowrap;">Regards,</span><br /><br /><span style="white-space: nowrap;">Richard Duivenvoorde</span><br /><br /> _______________________________________________<br /><span style="white-space: nowrap;">Qgis-user mailing list</span><br /><span style="white-space: nowrap;"><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a></span><br /><span style="white-space: nowrap;">List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br /><span style="white-space: nowrap;">Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>