RGB->HSV and back again?

rpiller

Member
Joined
Feb 6, 2007
Messages
8
Programming Experience
5-10
I've done this before in another language and just wondering if I can do it using vb.net. I have an image, and there are certain shades of a color I want to turn to the same shade but a different color. Let's say my image is a picture of a guy wearing a shirt. The shirt is many different shades of green. I want to loop through each pixel and if the color for a given pixel is within the green hsv value, I add like 120 to that value and convert back to rgb which would make the shades the exact same, but now in blue (I think). So my question is when looping through pixels, how can I convert the RGB to HSV and back again? Thanks.
 
Back
Top