We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4735e26 commit a2d7667Copy full SHA for a2d7667
1 file changed
src/MediaConverters/MediaConverters.Lib/Imaging/Effect/Color/ColorMatrices.cs
@@ -21,13 +21,13 @@ public static class ColorMatrices
21
/// <param name="color">颜色</param>
22
/// <param name="m">颜色处理矩阵.</param>
23
/// <returns>处理后的颜色</returns>
24
- public static ColorMetadata ApplyMatrix(ColorMetadata color, in ColorMatrix5x5 m)
+ public static ColorMetadata ApplyMatrix(in ColorMetadata color, in ColorMatrix m)
25
{
26
// 应用颜色转换矩阵将RGB颜色转换为新颜色
27
- var r = color.ARGB.Item1;
28
- var g = color.ARGB.Item2;
29
- var b = color.ARGB.Item3;
30
- var a = color.ARGB.Item4;
+ var r = color.ARGB.R;
+ var g = color.ARGB.G;
+ var b = color.ARGB.B;
+ var a = color.ARGB.A;
31
var w = 1.0f;
32
Span<float> newColor =
33
[
0 commit comments