convert color from HSV to RGB

convert color from HSV to RGB

Anonymous
Not applicable
725 Views
4 Replies
Message 1 of 5

convert color from HSV to RGB

Anonymous
Not applicable

Hello,

 

I am trying to convert the color composed by HSV value to the autodesk Color object which is composed by RGB value. I work with C#.

 

Is there anyone here knows an example or an algorithm works well for this subject?

 

Thanks in advance,

Beiting.

0 Likes
Accepted solutions (1)
726 Views
4 Replies
Replies (4)
Message 2 of 5

stevenh0616
Collaborator
Collaborator
Accepted solution

I haven't tested this - but found a solution here. This is not an AutoCAD or Civil 3D function, this would be more generalized to .NET overall.

 

https://stackoverflow.com/questions/1335426/is-there-a-built-in-c-net-system-api-for-hsv-to-rgb

 

 

Steve Hill, Civil Designer / .NET Developer / AutoCAD and AutoCAD Civil 3D Certified Professional
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

http://redtransitconsultants.com/
Autodesk Exchange Store
Twitter | LinkedIn | YouTube

Message 3 of 5

hippe013
Advisor
Advisor

See Lee Mac's Webiste for Color Conversions

 

It is done in LISP but would be easy to convert to any language.

 

http://www.lee-mac.com/colourconversion.html#rgbhsl

Message 4 of 5

Anonymous
Not applicable

Thank you very much. I have found another solution. It is very similiar to your proposition, and it works very well.

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thank you very much. It works now !

0 Likes