Converting RGBA to any pixel type. Note: Supports homogeneous pixels only. More...
#include <color_convert.hpp>
Public Member Functions | |
template<typename P1 , typename P2 > | |
void | operator() (const P1 &src, P2 &dst) const |
Converting RGBA to any pixel type. Note: Supports homogeneous pixels only.
Done by multiplying the alpha to get to RGB, then converting the RGB to the target pixel type Note: This may be slower if the compiler doesn't optimize out constructing/destructing a temporary RGB pixel. Consider rewriting if performance is an issue