kis_tool_brush

Patrick Julien freak at codepimps.org
Fri Nov 21 03:36:25 CET 2003


On November 19, 2003 05:41 pm, Boudewijn Rempt wrote:
> I've ported kis_tool_brush (still identified by nice white sheet of paper
> icon in the toolbar) to the new tool archtitecture. I've also added a
> compositing mode especially for painting: COMPOSITE_NORMAL, which doesn't
> increase the transparency every time an image with transparent pixels is
> composited, so now the brush is a real painting brush, instead of a bad
> imitation of wet-in-wet tempera painting :-).
>
> There are still a few problems, though.
>
> First with my implementation of the brush: I don't cache masks, which makes
> painting too slow, and I don't do undo/redo yet, and no pressure
> sensitivity and a host of unimplemented issues.
>
> Second, there's still something quite wrong with the way we handle tools,
> canvas updates and multiple views. Experiment with it; open an image, open
> a new view, and start painting here, and there and everywhere...

Well, I did not read the code, just made it work basically on multiple views, 
but does not cure the disease.

Want I want to do is just call invalidate on an image, and if needed, notify 
is fired from inside KisImage.  There are relics here of 2 different authors 
+ the beginnings of what I this solution here that I coded... hence it makes 
updating the canvas a serious undertaking.

This just needs to be addressed before serious tools can be written.  Oh well, 
I'll see what I can do eventually.




More information about the kimageshop mailing list