<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On Wednesday 24 June 2009, Dmitry Kazakov wrote:<br>
> Good evening, everybody!<br>
><br>
> Could someone explain me, what is (was) "incremental painting" (and (!<br>
> KisTool::m_incrementalPainting)) used for?<br>
> What is it supposed to do and what is it's current state?<br>
It's set up by paintop (wash vs build-up modes), basically, we have two modes:<br>
* painting is done directly on the current layer using the current composite op<br>
* painting is done on a temporary layer using the "alpha darken" composite op, then that layer is composed on the current layer<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>The interest of the second mode is that if you set opacity = 50% for drawing, when you draw, you will never draw more than 50% of opacity.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> I simply get a bit strange behavior with it, freehand tool and new memento<br>
> manager. There are two KisTransactions created during one single click on<br>
> canvas and massing COW'ing comes. I'm thinking it over atm... =)<br>
Sounds correct, one KisTransaction for the temporary layer, and one for the current layer. (that said, it might be worth investigating not doing transaction for the temporary layer, sound useless, but maybe some paintop relies on the oldRawData ?)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Cyrille Berger</p></body></html>