I implemented and tested(my results match with Photoshop),
but not yet documented, the following blend modes:
enum DLLPUBLIC BlendMode
{
BM_NORMAL = 1,
BM_MULTIPLY = 2,
BM_DARKEN = 3,
BM_LIGHTEN = 4,
BM_SCREEN = 5,
BM_DIFFERENCE = 6,
BM_EXCLUSION = 7,
BM_HARDLIGHT = 8,
BM_OVERLAY = 9,
BM_COLORDODGE = 10,
BM_COLORBURN = 11,
BM_LINEARLIGHT = 12,
BM_VIVIDLIGHT = 13,
BM_LINEARBURN = 14,
BM_PINLIGHT = 15,
BM_SOFTLIGHT = 16,
BM_ADD = 17,
BM_ARITHMETICMEAN = 18,
BM_GEOMETRICMEAN = 19,
BM_XOR = 20,
BM_AND = 21,
BM_OR = 22
};
My newest commit is in my 'compositing' branch here:
https://github.com/StefanStavrev/oiio/commit/50fe78bc6a99854b14751cb40bf7cbf6d36d9c8d
Let me know if you want some other blend mode added,
or if you have suggestions for the code. I will continue now
to work on the Porter-Duff operations.
Larry, should I document all these with image examples,
and prepare a nice pdf for it all? Or just text explanation
about what they do and the formulas? I vote for text
only, it should be API documentation not a tutorial on
what the blend modes do and how should they be used.
Stefan
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org