Skip to content

Commit

Permalink
Use Quantum.Convert for K value in MagickColor
Browse files Browse the repository at this point in the history
Use Quantum.Convert for K value same as red, green, blue
  • Loading branch information
Gounlaf committed Jan 6, 2024
1 parent bad1e07 commit cb05cb5
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 cb05cb5

Please sign in to comment.