--===============0206362888== Content-Type: multipart/alternative; boundary=00151750e618c6dd170481ee5373 --00151750e618c6dd170481ee5373 Content-Type: text/plain; charset=UTF-8 > > > > > Why do you think data manager should know anything? > I think you missed my point :) > > Lets say I open an image, I then select an area (non necessarily > rectangular), > then I go to the edit menu and choose cut or clear, it will replace my > selection by transparent pixels in function of selectedness on my image. > And > neither KisDataManager::fill/KisDataManager::clear apply in this case, > since > they take a rectangle as argument. > Ok. Then we need this KisTileHashTable::purge() method. But i still don't think we should do this during save. E.g. in my emacs workflow i save my work every ~40sec. If i did the same with Krita, then this full scanning of tiles would make some troubles. Btw, AutoCAD has the purge() method too. It removes unused references and blocks. And it is revealed to the user into File->Drawing Utilities->Purge... Maybe it could work for Krita too... Actually, we could do this on opening the image. It happens not so often and do not disturb the user much. But it would mean that the image becomes altered (internally) right after opening. -- Dmitry Kazakov --00151750e618c6dd170481ee5373 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>I think you missed my point :)
> Why do you think data manager should know anything?
Lets say I open an image, I then select an area (non necessarily rectangula= r),
then I go to the edit menu and choose cut or clear, it will replace my
selection by transparent pixels in function of selectedness on my image. An= d
neither KisDataManager::fill/KisDataManager::clear apply in this case, sinc= e
they take a rectangle as argument.