Well, there is a bit of misunderstanding =)<br><br>I don't want to feed filters with chunks of bytes. =) I just want to ask a datamanager to tell me where the holes in selections are. It will look like:<br><br>QVector<QRect> rects = selection->getNonemptyRects();<br>
applyFilterToRects(rects);<br><br><br>Where KisSelection::getNonemptyRects() is like:<br><br>QVector<QRect> KisSelection::getNonemptyRects() <br>{<br> return m_paintDevice->datamanager()->getNonemptyRects();<br>
}<br><br>QVector<QRect> KisTiledDataManager::getNonemptyRects() <br>{<br>
QVector<QRect> vector;<br> foreach(tile) {<br>
vector.append(tile.extent());<br> }<br>return vector;<br>
}<br><br clear="all"><br>-- <br>Dmitry Kazakov<br>