>
> Pivot comes with a number of Decorator implementations.  If there isn't one
> that does exactly you need, I wouldn't describe that as a bug.
>

Well, if not a bug, at least an inadequacy.

You are free to write your own implementations to meet your needs
>

As always.  Would be more comfortable advice if I were a graphics expert...

For example, a quick search found this post demonstrating 3 different
> grayscale conversion techniques and some comments discussing transparency.
>
> http://blog.codebeach.com/2008/03/convert-color-image-to-gray-scale-image.html
>

...but fortunately, others are!  Excellent to-the-point article.  I took the
code helpfully supplied in the comment about the transparency shortcoming,
dropped it into the current GrayscaleDecorator implementation, and it works
beautifully right out of the box.  Thanks!

I'll submit it as a proposed improvement, and y'all can decide whether it's
a bug fix or not.  I think it is, since the current implementation, I claim,
is not what anyone would properly expect it to do.

Reply via email to