Two more functions for the colorstrategy?

Boudewijn Rempt boud at valdyas.org
Wed Aug 10 13:59:27 CEST 2005


On Wednesday 10 August 2005 13:51, Casper Boemann wrote:

> > clearSelection does: MAX_SELECTED - selection alpha * device alpha
> > applySelection does: selection alpa * device alpha / MAX_SELECTED

> how about:
> screenWithSelect()
> screenWithInverseSelect()

Well -- it's not about the selection per se here, right?. It's about computing 
with alpha, so wouldn't something like

inverseAverageAlpha(Q_UINT8 * pixel, Q_UINT8 * alph2)
averageAlpha(Q_UINT8 * pixel, Q_UINT8 * alph2) 

be better?

Or maybe:

mask (Q_UINT8 * pixels, Q_UINT8 * mask, Q_UINT32 nPixels)
inverseMask (Q_UINT8 * pixels, Q_UINT8 * mask, Q_UINT32 nPixels)

?


> anyway I need them in the transform tool as well

Give me some time to complete the !@#$% renaming...

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20050810/9279b4f4/attachment.pgp


More information about the kimageshop mailing list