* Fix typo #13117

* Fix typo in comments
This commit is contained in:
Franky Chen 2021-09-09 21:34:19 +08:00 committed by GitHub
parent 1495285a6a
commit 21c7374177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View file

@ -375,7 +375,6 @@ CXSMICON
CXVIRTUALSCREEN
cxx
cxxopts
CYMK
CYSMICON
cziplib
Dac

View file

@ -13,7 +13,7 @@ namespace ColorPicker.Helpers
internal static class ColorHelper
{
/// <summary>
/// Convert a given <see cref="Color"/> to a CYMK color (cyan, magenta, yellow, black key)
/// Convert a given <see cref="Color"/> to a CMYK color (cyan, magenta, yellow, black key)
/// </summary>
/// <param name="color">The <see cref="Color"/> to convert</param>
/// <returns>The cyan[0..1], magenta[0..1], yellow[0..1] and black key[0..1] of the converted color</returns>

View file

@ -35,7 +35,7 @@ namespace ColorPicker.Helpers
internal static string GetStringRepresentation(Color color, ColorRepresentationType colorRepresentationType)
=> colorRepresentationType switch
{
ColorRepresentationType.CMYK => ColorToCYMK(color),
ColorRepresentationType.CMYK => ColorToCMYK(color),
ColorRepresentationType.HEX => ColorToHex(color),
ColorRepresentationType.HSB => ColorToHSB(color),
ColorRepresentationType.HSI => ColorToHSI(color),
@ -50,11 +50,11 @@ namespace ColorPicker.Helpers
};
/// <summary>
/// Return a <see cref="string"/> representation of a CYMK color
/// Return a <see cref="string"/> representation of a CMYK color
/// </summary>
/// <param name="color">The <see cref="Color"/> for the CYMK color presentation</param>
/// <returns>A <see cref="string"/> representation of a CYMK color</returns>
private static string ColorToCYMK(Color color)
/// <param name="color">The <see cref="Color"/> for the CMYK color presentation</param>
/// <returns>A <see cref="string"/> representation of a CMYK color</returns>
private static string ColorToCMYK(Color color)
{
var (cyan, magenta, yellow, blackKey) = ColorHelper.ConvertToCMYKColor(color);