Home
last modified time | relevance | path

Searched defs:ColorTraits (Results 1 – 2 of 2) sorted by relevance

/aoo41x/main/basebmp/inc/basebmp/
H A Dcolortraits.hxx112 template< typename ColorType > struct ColorTraits struct
115 template< typename AlphaType, bool polarity > struct blend_functor : public
121 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()
H A Dcolormisc.hxx114 template<> struct ColorTraits< Color > struct
117 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 19 milliseconds