<div dir="ltr">Hi,<div><br></div><div>Sorry for the top post...</div><div class="gmail_extra"><br></div><div class="gmail_extra">Btw, you can also grab iface.mainWindow() for the full application main window screen shot. This just grabs the content area, so no native window dressings, e.g. no title bar, etc.</div><div class="gmail_extra"><br></div><div class="gmail_extra">There is also the fun stuff in this Qt5 example (I think one for Qt4, too):</div><div class="gmail_extra"><a href="http://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html">http://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">While the user could use another screen capture utility, having some limited, but reasonable, capture functionality as part of QGIS core can be quite useful, especially in educational settings, as it would require no additional software.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Maybe even a simple movie recording feature that dumps to an animated GIF? Ah, now that would be very, very useful and a fun feature to make. Btw, Qt can grab the entire screen, or just the portions occupied by QGIS, as well.<br clear="all"><div><div class="gmail_signature"><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota</div></div>
<br><div class="gmail_quote">On Tue, Dec 20, 2016 at 1:43 PM, Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div class="gmail_extra">
<br><div class="gmail_quote"><span class="gmail-">On Tue, Dec 20, 2016 at 11:02 AM, DelazJ <span dir="ltr"><<a href="mailto:delazj@gmail.com" target="_blank">delazj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><br><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-m_7916369018141194003gmail-">2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen <span dir="ltr"><<a href="mailto:bo.victor.thomsen@gmail.com" target="_blank">bo.victor.thomsen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi List-members -<br>
<br>
Is there in Qgis a function / button / menu-item / short-cut / plugin to make a simple bitmap copy of the current content of the map-canvas and save it to the clipboard ? My users need this to make a copy of the map and paste into MS-Word or other software.<br></blockquote></span></div></div></div></blockquote><div><br></div></span><div>While not part of the QGIS app, one could use this PyQGIS snippet to do so (tested quickly on macOS 10.11.6 under QGIS 2.14) from the PyQGIS console:</div><div><br></div><div>from PyQt4.QtGui import *<br></div><div>QApplication.clipboard().<wbr>setImage(QImage(QPixmap.<wbr>grabWidget(iface.mapCanvas()))<wbr>)<br></div><div><br></div><div>This avoids having to re-render the QGraphicsView (QgsMapCanvas) to a paint device, like an image. Code can be wrapped in a plugin, then have some key bindings applied (would need some more PyQt).</div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div>Larry Shaffer<br>Dakota Cartography<br><div>Black Hills, South Dakota</div></font></span><span class="gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-m_7916369018141194003gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I really need the functionality for my users and I can't seem to find it. The closest I've come is the "save as png" menu-item in the project menu. But it's to cumbersome to use in this case.<br></blockquote><div><br></div></span><div>Afaics, there's no "save as png" option but "save as image" in Project menu, option from which you can choose the image file format (bmp, jpg...). It's not on the clipboard but easier and more accessible than print composer.<br><br></div><div>Regards,<br></div><div>Harrissou<br></div><span class="gmail-m_7916369018141194003gmail-"><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I'm familiar with the composer function. My users can't use this neither because it takes to long to activate (to many choices and to many buttons to click)<br>
<br>
So I've decided to make a simple plugin to cover this functionality. But first I want to be very sure the function actually is missing ;-)<br>
<br>
Regards<span class="gmail-m_7916369018141194003gmail-m_5600810998998452839HOEnZb"><font color="#888888"><br>
Bo Victor Thomsen<br>
Municipality of Frederikssund, Denmark.<br>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a></font></span></blockquote></span></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>