Skip to content

Commit df8faa4

Browse files
add summary comment info to ChangeColorBrightness.
1 parent 3699101 commit df8faa4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Controls/DrawingExt.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,15 @@ public static Color ChangeColorBrightness(this Color color, float correctionFact
288288
return Color.FromArgb(color.A, (int)red, (int)green, (int)blue);
289289
}
290290

291+
/// <summary>
292+
/// Creates color with corrected brightness.
293+
/// </summary>
294+
/// <param name="color">Color to correct.</param>
295+
/// <param name="correctionFactor">The brightness correction factor. Must be between -1 and 1.
296+
/// Negative values produce darker colors.</param>
297+
/// <returns>
298+
/// Corrected <see cref="Color"/> structure.
299+
/// </returns>
291300
public static Color ChangeColorBrightness(this Color color, double correctionFactor)
292301
=> ChangeColorBrightness(color, (float)correctionFactor);
293302

0 commit comments

Comments
 (0)