New idea about Grayscale Selections problem

Boudewijn Rempt boud at valdyas.org
Tue Feb 12 08:23:38 UTC 2013


On Sunday 10 February 2013 Feb, Dmitry Kazakov wrote:
> Well, probably, we could think over the idea of having
> KisSelection::paintDevice() again... But we should first consider a few
> problems very carefully:
> 
> 1) On the start of every transaction over KisSelection::paintDevice() the
> selection should be flattened to have a paint device only.
> 2) On the start of every transaction over KisSelection::pixelSelection()
> the selection should be flattened to have a pixel selection only.
> 3) (What should we do on the creation of a vector selection in a selection
> having a pixel selection?)
> 4) All the flatten events should be undo/redo'able
> 5) The KisSelection::paintDevice() object should still be in some special
> colorspace, that can be composed into alpha() colorspace properly.
> 
> Actually, problems 2 and 4 are to be solved anyway, because currently we
> have a few bugs due to it.

That seems to make the plan more feasible....

> Problems 1 and 2 should be somehow solved internally inside the
> KisSelection, that it we shouldn't ask the user-code to flatten it every
> time manually.

Yes, it should be transparent to the code using selections.

-- 
Boudewijn Rempt
http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl


More information about the kimageshop mailing list