APShredder Posted October 12, 2009 Share Posted October 12, 2009 While writing my latest plugin, I've run into a bit of a problem. I needed to work in HSV color space, which I managed to do, but now I need to convert the HSV colors back into RGB colors. I've tried pretty much all that I can think of to convert back to RGB, but to no avail. I think I saw a method floating around here before to convert HSV to RGB, but now I can't find it. so, hopefully someone else knows where that method can be found, or someone knows how to convert HSV to RGB. Thanks in advance. Quote BlendModes Plus | Dissolve | Extract Color Link to comment Share on other sites More sharing options...
pyrochild Posted October 12, 2009 Share Posted October 12, 2009 PaintDotNet.HsvColor.ToColor() for a System.Drawing.Color, or HsvColor.ToRgb() for a PaintDotNet.RgbColor. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
APShredder Posted October 12, 2009 Author Share Posted October 12, 2009 Are you sure about that? Because I can only chose HsvColor.FromColor(), which doesn't help me. :? Quote BlendModes Plus | Dissolve | Extract Color Link to comment Share on other sites More sharing options...
pyrochild Posted October 12, 2009 Share Posted October 12, 2009 PaintDotNet.HsvColor hsv = HsvColor.FromColor(Color.Orange); System.Drawing.Color color = hsv.ToColor(); 1 Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
APShredder Posted October 12, 2009 Author Share Posted October 12, 2009 Oh, I get it now. Thank you! Quote BlendModes Plus | Dissolve | Extract Color Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.