Click here to Skip to main content
16,020,622 members
Please Sign up or sign in to vote.
1.00/5 (1 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.
Posted
Updated 4-Aug-15 16:34pm
v2

1 solution

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 :)
 
Share this answer
 
Comments
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900