<div dir="ltr">Hi Bo, et al.,<div class="gmail_extra">
<br><div class="gmail_quote">On Wed, Dec 21, 2016 at 4:34 AM, Bo Victor Thomsen <span dir="ltr"><<a href="mailto:bo.victor.thomsen@gmail.com" target="_blank">bo.victor.thomsen@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 bgcolor="#FFFFFF">
    <p>Ok - <br>
    </p>
    <p>A very rough, but functional first version of the plugin is now
      in <a class="gmail-m_1847998977164353779moz-txt-link-freetext" href="https://github.com/Frederikssund/QGIS-canvas-to-clipboard/" target="_blank">https://github.com/<wbr>Frederikssund/QGIS-canvas-to-<wbr>clipboard/</a><br>
    </p>
    <ul>
      <li>No shortcut</li>
      <li>No about-box, nice explanations or help text</li>
      <li>No copyright statements</li>
      <li>Only one button that create a bitmap of the current map-canvas
        and put into the clipboard<br>
      </li>
    </ul>
    But it works  !<br>
    <br>
    Is it possible that I could get some feedback on how it works on
    other platforms than Windows from someone(s) with access to Linux
    and/or Mac? </div></blockquote><div><br></div><div>Plugin works fine here on macOS 10.11.6 with QGS 2.14. Thanks for putting it together. Glad to see it works cross-platform without quirks!</div><div><br></div><div>Here on macOS, the clipboard contents are recognized as a TIFF-formatted image (of course, not GeoTIFF, that would be too cool - though I don't know where one could *paste* a GeoTIFF). Guessing that the clipboard format might be platform-specific and managed by Qt.</div><div><br></div><div>Also here on macOS, there is a thin gray border, which I think is always part of the widget's scene. IMO actually makes the capture better, if there is a partial or wrapped white background shown in the canvas and the user is pasting into a white-background document (common scenario).</div><div><br></div><div>Richard, if you are looking to add this to master, maybe it should go under the View menu, e.g. View -> Copy to Clipboard (maybe right under 'Zoom Out'?), since Edit menu seems to be just for editing features and is fully greyed-out if only working with rasters. Another appropriate menu might be Project -> Copy to Clipboard, under 'Save as Image...', though I think under View is maybe better.</div><div><br></div><div>Be good to have a default key binding, though I can't think of a decent cross-platform keystroke right now.</div><div><br></div><div>Regards,</div><div><br></div><div>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br></div><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 bgcolor="#FFFFFF"><span class="gmail-"><br>
    <br>
    <div class="gmail-m_1847998977164353779moz-cite-prefix">Den 20-12-2016 kl. 21:43 skrev Larry
      Shaffer:<br>
    </div>
    </span><div><div class="gmail-h5"><blockquote type="cite">
      <div dir="ltr">Hi,
        <div class="gmail_extra">
          <br>
          <div class="gmail_quote">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_1847998977164353779gmail-">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>
            <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>
            <div><br>
            </div>
            Larry Shaffer<br>
            Dakota Cartography<br>
            <div>Black Hills, South Dakota</div>
            <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_1847998977164353779gmail-">
                      <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_1847998977164353779gmail-">
                      <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_1847998977164353779gmail-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>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">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/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div><br></div></div>