You are right Alan so I have implemented conversion routines based on the following

https://www.rapidtables.com/convert/color/hsl-to-rgb.html
https://www.rapidtables.com/convert/color/rgb-to-hsl.html

I also found this site useful for checking results

http://www.workwithcolor.com/color-converter-01.htm

I will look into how GDIPlusX does its calculations for H, S and L.  Do you have a link for these conversions in .NET?

Paul


I also found this site useful for checking results
On 01/07/2022 09:17, Alan Bourke wrote:
I don't think its implementation of these methods is correct Paul, comparing 
with what .NET would return.



--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/884c390d-b344-dd66-64cf-da37c6e9e...@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to