koffice/krita/tools
Adrian Page
adrian at pagenet.plus.com
Thu Aug 26 12:56:53 CEST 2004
On Thursday 26 August 2004 8:03 am, Boudewijn Rempt wrote:
> Maybe it's even easier to do the following if there's no selection yet:
>
> create temporary selection
> floodfill the selection according to the outlines in the parent layer (that
> makes things easier, I guess, because you don't have to take pattern/color
> fill into account.)
>
> then the code paths for filling selection/filling outline join, and do what
> you suggested:
>
> create temporary layer as big as the selected rect (working on that one...)
> fill the layer with color (KisPainter::fill) or pattern or masked pattern
>
> compose layer & selection
>
> blit the temporary layer on the target layer
>
> remove temporary selection, if exists.
Yes, that would simplify the filling code and you could use it for all kinds
of fill operation.
Adrian
More information about the kimageshop
mailing list