Defaultpixel problem on projection

Casper Boemann cbr at boemann.dk
Mon Jul 16 21:01:51 CEST 2007


On Monday 16 July 2007 20:55, Sven Langkamp wrote:
> On 7/16/07, Casper Boemann <cbr at boemann.dk> wrote:
> > On Monday 16 July 2007 20:40, Sven Langkamp wrote:
> > > Hi,
> > >
> > > I stumbled over a problem with the use of defaultpixel in the
> > > selection projection:
> > >
> > > If I create a pixelselection, select a small area and then invert it,
> > > Krita will flip the defaultpixel of that selection. When the selection
> > > is rendered to the selection projection, the defaultpixel of the
> > > selection and the projection are different.
> > >
> > > At the moment the only solution I see is to write all pixels to the
> > > projection, which would be really bad as that would increase the size
> > > of the selection.
> > >
> > > Maybe someone has an idea how this could be done better.
> >
> > we certainly don't want to write all pixels
> >
> > why don't you simply copy the defaultPixel to the projection's
> > defaultPixel?
>
> That would work for the selections as they are now with only one pixel
> selection, but it would break if there are more selections (as
> planned)
Why?

if all you want is the union of those selections then the unified defaultPixel 
would just be the max value of the individual defaulPixels

> Do we have a method that does a 1:1 copy of the datamanager form one
> mask to another?
the tilemanager copyconstructor does - well except it doesn't copy the 
mementoes

best regards / venlig hilsen
Casper Boemann


More information about the kimageshop mailing list