<br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 11:11 PM, Paul A Norman <span dir="ltr"><<a href="mailto:paul.a.norman@gmail.com">paul.a.norman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><div>>The best time to work on this would probably be alongside text selection and copy/paste.
</div><div><br></div></div><div>As in ...?</div><div><table style="border-top-left-radius:7px;border-top-right-radius:7px;border-bottom-right-radius:7px;border-bottom-left-radius:7px;background-color:rgb(230, 231, 232);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(230, 230, 230);border-right-color:rgb(230, 230, 230);border-bottom-color:rgb(230, 230, 230);border-left-color:rgb(230, 230, 230);font-size:11px;margin-bottom:15px;margin-top:15px;margin-right:15px;margin-left:15px;color:rgb(54, 53, 52);font-family:Verdana">


<tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:3px;padding-right:5px;padding-bottom:3px;padding-left:10px;text-align:right;vertical-align:top">
Bool</td><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:3px;padding-right:15px;padding-bottom:3px;padding-left:0px"><b><a href="http://doc.qt.nokia.com/latest/qimage.html#save" style="color:rgb(76, 0, 51);text-decoration:none" target="_blank">save</a></b> ( const QString & <i>fileName</i>, const char * <i>format</i> = 0, int <i>quality</i> = -1 ) const</td>

</tr></tbody></table></div></blockquote><div>You would want to use methods from QGraphicsView or QGraphicsScene to render a given rectangle using a painter that is targetting a QImage:</div><table class="alignedsummary" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; background-color: rgb(230, 231, 232); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(230, 230, 230); border-right-color: rgb(230, 230, 230); border-bottom-color: rgb(230, 230, 230); border-left-color: rgb(230, 230, 230); font-size: 11px; margin-bottom: 15px; margin-top: 15px; margin-right: 15px; margin-left: 15px; color: rgb(54, 53, 52); font-family: Verdana; ">

<tbody><tr><td class="memItemLeft rightAlign topAlign" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 5px; padding-bottom: 3px; padding-left: 10px; text-align: right; vertical-align: top; ">

void</td><td class="memItemRight bottomAlign" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 15px; padding-bottom: 3px; padding-left: 0px; "><b><a href="http://doc.qt.nokia.com/4.7/qgraphicsview.html#render" style="color: rgb(0, 115, 47); text-decoration: none; ">render</a></b> ( QPainter * <i>painter</i>, const QRectF & <i>target</i> = QRectF(), const QRect & <i>source</i> = QRect(), Qt::AspectRatioMode <i>aspectRatioMode</i> = Qt::KeepAspectRatio )</td>

</tr></tbody></table><div>Then the image could be passed to the clipboard.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div></div>

<div> Thanks -bit question not relevant for now then - relates to the pixel depth format that the "image" as it were is being rendered at when returned by pdf renderer.</div><span class="HOEnZb"><font color="#888888">
<div><br></div><div>Paul</div></font></span></blockquote><div><br></div><div>Ahh... those decisions are still out of our hands. The bit depth of the images is controlled by the rendering library---which is still Poppler at the moment but could change to MuPDF in the distant future.</div>

<div><br></div><div>-Charlie</div></div>