From kde-kimageshop Tue Feb 12 08:23:38 2013 From: Boudewijn Rempt Date: Tue, 12 Feb 2013 08:23:38 +0000 To: kde-kimageshop Subject: Re: New idea about Grayscale Selections problem Message-Id: <201302120923.38607.boud () valdyas ! org> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=136065743110412 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 _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop