Click here to Skip to main content
14,330,041 members
Rate this:
Please Sign up or sign in to vote.
See more:
Sorry,I need to correct my question.

Now I use below code to convert.

public static void ColorToHSV(Color color, out double hue, out double saturation, out double value)
int max = Math.Max(color.R, Math.Max(color.G, color.B));
int min = Math.Min(color.R, Math.Min(color.G, color.B));
hue = color.GetHue();
saturation = (max == 0) ? 0 : 1d - (1d * min / max);
value = max / 255d;

How to show that in "PictureBox" ??
Sorry, I'm a novice.
Updated 4-Aug-15 16:34pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I haven't tried doing this but following link I've found from google search and hopefully help you getting resolved your problem.

How to change RGB color to HSV?[^]

Hope, it helps :)
Member 11883438 4-Aug-15 0:52am
I know that website,But I still don't know how to use "PictureBox" to show the original one and converted one

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100