FloatComponents premultiplied(const FloatComponents& sRGBCompontents);
-class ColorMatrix {
-public:
- static ColorMatrix grayscaleMatrix(float);
- static ColorMatrix saturationMatrix(float);
- static ColorMatrix hueRotateMatrix(float angleInDegrees);
- static ColorMatrix sepiaMatrix(float);
-
- ColorMatrix();
- ColorMatrix(const float[20]);
-
- void transformColorComponents(FloatComponents&) const;
- FloatComponents transformedColorComponents(const FloatComponents&) const;
-
-private:
- void makeIdentity();
-
- float m_matrix[4][5];
-};
-
} // namespace WebCore
namespace std {