Select-by-color range and .isSelected()
Boudewijn Rempt
boud at valdyas.org
Fri Apr 1 13:55:51 CEST 2005
I'm now at a point where I do have something nearly working in the colorrange
dialog (although I must admit that I'm stumped about the correct algorithm,
can't seem to be able to think something up), but now I've found the next
issue:
Selection is not an on/off binary value, but a range. The isSelected() method
returns a boolean to the filters, and that's the first place where we go
wrong. It's not clear to me how we should handle a 50% selected pixel,
either.
Desaturate is easy: just halve the saturation in the hsv representation of a
pixel. But oilpaint? Sharpen? What would be the meaning of 69% selected
there? Blit the sharpened pixel with 69% opacity over its original?
Finally, I cannot seem to be able to get the selection preview or the
selection mask done with a nice grayscale effect, the effect remains bitmappy
on/off whatever I do.
--
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/20050401/c81f0f92/attachment.pgp
More information about the kimageshop
mailing list