Searched defs:ColorTraits (Results 1 – 2 of 2) sorted by relevance
112 template< typename ColorType > struct ColorTraits struct115 template< typename AlphaType, bool polarity > struct blend_functor : public121 static int numChannels() { return 1; } in numChannels()124 typedef ColorType component_type;127 static inline vigra::NormTraits<ColorType> distance( ColorType c1, in distance()133 static inline component_type toGreyscale( ColorType c ) in toGreyscale()138 static inline ColorType fromGreyscale( component_type c ) in fromGreyscale()
114 template<> struct ColorTraits< Color > struct117 static int numChannels() { return 3; } in numChannels()120 typedef sal_uInt8 component_type;126 static inline double distance( const Color& c1, in distance()132 static inline component_type toGreyscale( const Color& c ) in toGreyscale()137 static inline Color fromGreyscale( component_type c ) in fromGreyscale()
Completed in 12 milliseconds