Skip to content

Commit

Permalink
Use Quantum.Convert for K value in MagickColor (#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gounlaf committed Feb 15, 2024
1 parent a3d25eb commit 6e76c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magick.NET/Colors/MagickColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private MagickColor(NativeMagickColor instance)
if (!color.IsCmyk)
return new MagickColor(red, green, blue, color.A);

var key = (QuantumType)percentage.Multiply((double)color.K);
var key = Quantum.Convert(percentage.Multiply((double)color.K));

return new MagickColor(red, green, blue, key, color.A);
}
Expand Down

0 comments on commit 6e76c42

Please sign in to comment.