Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Converting the color classes (RGB, HSL, YCbCr) to become structs;
Browse files Browse the repository at this point in the history
Adding conversion operators between different color classes;
Adding unit tests and documentation examples for color classes;

 - Updates GH-901: Add an Example for HSL Class
  • Loading branch information
cesarsouza committed Sep 28, 2017
1 parent 0938c61 commit 90a88cd
Show file tree
Hide file tree
Showing 19 changed files with 1,118 additions and 801 deletions.
4 changes: 2 additions & 2 deletions Sources/Accord.Controls.Imaging/AForge/HuePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ protected override void OnPaint(PaintEventArgs e)
{
hsl.Hue = i;
// convert from HSL to RGB
Accord.Imaging.HSL.ToRGB(hsl, rgb);
Accord.Imaging.HSL.ToRGB(hsl, ref rgb);
// create brush
brush = new SolidBrush(rgb.Color);
// draw one hue value
Expand All @@ -251,7 +251,7 @@ protected override void OnPaint(PaintEventArgs e)
{
hsl.Hue = i;
// convert from HSL to RGB
Accord.Imaging.HSL.ToRGB(hsl, rgb);
Accord.Imaging.HSL.ToRGB(hsl, ref rgb);
// create brush
brush = new SolidBrush(rgb.Color);
}
Expand Down
Loading

0 comments on commit 90a88cd

Please sign in to comment.