1) Is there any link to read about INDEPENDENT_CANVAS?<br><br>2) Well, is there any way to move painting decorations and overlay outside of paint event? We could prepare your QImage outside paint event, and just copy it to the widget inside paintEvent? Is this possible?<br>
<br><br><div class="gmail_quote">On Sun, Dec 6, 2009 at 3:57 PM, <a href="mailto:LukasT.dev@gmail.com">LukasT.dev@gmail.com</a> <span dir="ltr">&lt;<a href="mailto:lukast.dev@gmail.com">lukast.dev@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Saturday 05 December 2009 23:14:19 Dmitry Kazakov wrote:<br>
&gt; On Fri, Dec 4, 2009 at 2:21 AM, <a href="mailto:LukasT.dev@gmail.com">LukasT.dev@gmail.com</a><br>
</div><div class="im">&gt; I think we should merge them somehow.<br>
&gt;<br>
&gt; What we have at the moment (in update order):<br>
&gt;<br>
&gt; image-&gt;rootLayer()-&gt;projection() - stores image without any borders and<br>
&gt; decorations (using tiles)<br>
&gt; view-&gt;prescaledProjection()::d-&gt;projectionBackend - stores unscaled<br>
&gt;  original (either tiles or QImage - config-dependent)<br>
&gt;<br>
&gt; view-&gt;prescaledProjection()-&gt;prescaledQImage() - i&#39;m not sure what stuff is<br>
&gt; painted in this image. It stores scaled-down image, shifted according to<br>
&gt; view state. As far as i know it doesn&#39;t have any selections, flakes(?)<br>
&gt; inside - they are painted in canvas-&gt;drawDecorations().<br>
&gt;<br>
&gt; &lt;-- here we want to have another copy of it with prepainted decorations<br>
&gt;<br>
&gt; After this we paint an outcome onto the window.<br>
&gt;<br>
&gt;<br>
&gt; Lukas, is there any way to draw decorations on some transparent &quot;layer&quot;<br>
&gt; (QImage) and then just paint this at the top of the base image?<br>
<br>
</div>I&#39;m not sure :/ because sometimes you want to paint the decorations, brush<br>
outlines on the border of the canvas. Maybe we can find some way how to tile<br>
the canvas qimage so that borders are separated rectangular tiles and canvas<br>
image is the one from the methods you mention. But then I don&#39;t know how to<br>
paint stuff easily :(<br>
<div class="im"><br>
&gt; Btw, i still don&#39;t fully understand what is &quot;INFINITE&quot; =) I haven&#39;t found<br>
&gt; such a name in QPainterCanvas. It is the feature that i can paint outside<br>
&gt; actual image, isn&#39;t it?<br>
<br>
</div>Sorry, it is typo, it is INDEPENDENT_CANVAS and I named it that way because it<br>
brings independence to platforms regarding the rendering the UI stuff. Windows<br>
uses raster engine AFAIK, Linux has X11, but this way you can force the widget<br>
to use Raster and I don&#39;t know about Mac OS but same applies to Mac - Raster<br>
is used for the one widget.<br>
<br>
I was thinking about Why not run krita like krita --graphicssystem=raster (not<br>
exactly sure) but then raster is used for every widget. Raster is slower (I<br>
read it somewhere) then X11 because of some optimizations I suppose..<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
kimageshop mailing list<br>
<a href="mailto:kimageshop@kde.org">kimageshop@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kimageshop" target="_blank">https://mail.kde.org/mailman/listinfo/kimageshop</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Dmitry Kazakov<br>