Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gil::default_color_converter_impl< rgba_t, C2 > Struct Template Reference

Converting RGBA to any pixel type. More...

#include <color_convert.hpp>

Public Member Functions

template<typename P1 , typename P2 >
void operator() (const P1 &src, P2 &dst) const
 

Detailed Description

template<typename C2>
struct boost::gil::default_color_converter_impl< rgba_t, C2 >

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

Member Function Documentation

template<typename C2 >
template<typename P1 , typename P2 >
void boost::gil::default_color_converter_impl< rgba_t, C2 >::operator() ( const P1 &  src,
P2 &  dst 
) const
inline

The documentation for this struct was generated from the following file: