Lines Matching refs:Color

42 template<> struct ColorBitmaskOutputMaskFunctor<true> : MaskFunctorBase<Color,sal_uInt8>
44 Color operator()( Color v1, sal_uInt8 m, Color v2 ) const in operator ()()
48 return Color(v1.toInt32()*(sal_uInt8)(1-m) + v2.toInt32()*m); in operator ()()
51 template<> struct ColorBitmaskOutputMaskFunctor<false> : MaskFunctorBase<Color,sal_uInt8>
53 Color operator()( Color v1, sal_uInt8 m, Color v2 ) const in operator ()()
57 return Color(v1.toInt32()*m + v2.toInt32()*(sal_uInt8)(1-m)); in operator ()()
62 template<bool polarity> struct outputMaskFunctorSelector< Color, sal_uInt8, polarity, FastMask >
68 : public TernaryFunctorBase<sal_uInt8,Color,Color,Color>
70 Color operator()( sal_uInt8 alpha, in operator ()()
71 Color v1, in operator ()()
72 Color v2 ) const in operator ()()
83 return Color(((((sal_Int32)v2.getRed() - v1_red)*alpha) / 0x100) + v1_red, in operator ()()
90 : public TernaryFunctorBase<Color,Color,Color,Color>
92 Color operator()( Color input, in operator ()()
93 Color v1, in operator ()()
94 Color v2 ) const in operator ()()
106 return Color(((((sal_Int32)v2.getRed() - v1_red)*alpha) / 0x100) + v1_red, in operator ()()
114 template<> struct ColorTraits< Color >
126 static inline double distance( const Color& c1, in distance()
127 const Color& c2 ) in distance()
132 static inline component_type toGreyscale( const Color& c ) in toGreyscale()
137 static inline Color fromGreyscale( component_type c ) in fromGreyscale()
139 return Color(c,c,c); in fromGreyscale()
144 template<bool polarity> struct ColorTraits< Color >::blend_functor< sal_uInt8, polarity >
150 template<bool polarity> struct ColorTraits< Color >::blend_functor< Color, polarity >
161 struct NumericTraits<basebmp::Color>
163 typedef basebmp::Color Type;
164 typedef basebmp::Color Promote;
165 typedef basebmp::Color RealPromote;
166 typedef std::complex<basebmp::Color> ComplexPromote;