Skip to content

Commit cceeb2d

Browse files
Update Rgb.cs
1 parent ff752a2 commit cceeb2d

File tree

1 file changed

+3
-4
lines changed
  • src/ImageSharp/ColorProfiles

1 file changed

+3
-4
lines changed

src/ImageSharp/ColorProfiles/Rgb.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,14 @@ private static Matrix4x4 GetRgbToCieXyzMatrix(RgbWorkingSpace workingSpace)
252252
Vector3 vector = Vector3.Transform(workingSpace.WhitePoint.ToVector3(), inverseXyzMatrix);
253253

254254
// Use transposed Rows/Columns
255-
// TODO: Is there a built in method for this multiplication?
256255
return new Matrix4x4
257256
{
258257
M11 = vector.X * mXr,
259258
M21 = vector.Y * mXg,
260259
M31 = vector.Z * mXb,
261-
M12 = vector.X * 1,
262-
M22 = vector.Y * 1,
263-
M32 = vector.Z * 1,
260+
M12 = vector.X,
261+
M22 = vector.Y,
262+
M32 = vector.Z,
264263
M13 = vector.X * mZr,
265264
M23 = vector.Y * mZg,
266265
M33 = vector.Z * mZb,

0 commit comments

Comments
 (0)