Paul The .NET syntax is very similar: https://dotnetfiddle.net/b2uIkS
However it returns the lightness value in a range of 0 .. 1 so you have to multiply by 100 to express in a % which seems to be how everyone else does it. -- Alan Bourke alanpbourke (at) fastmail (dot) fm _______________________________________________ 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/73caac35-b27d-427c-bb9a-87bbe176a...@www.fastmail.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.