[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Defaultpixel problem on projection
From:       Casper Boemann <cbr () boemann ! dk>
Date:       2007-07-16 19:01:51
Message-ID: 200707162101.51644.cbr () boemann ! dk
[Download RAW message or body]

On Monday 16 July 2007 20:55, Sven Langkamp wrote:
> On 7/16/07, Casper Boemann <cbr@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
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic