Re: GDIPlusX GetHue() and GetBrightness()

2022-06-30 Thread Paul Newton
Alan That solves GetHue() because Cast(loColor.GetHue() As Integer gives a result of 0, but what about DarkGray GetBrightness returning 38174 ? Also DarkSalmon RGB(233,150,122) is returning: R = 0 G = 0 B = 0 Cast(GetHue() As Integer) = 0 Cast(GetSaturation() As Integer) = 0 Cast(GetBrightnes(

Re: GDIPlusX GetHue() and GetBrightness()

2022-06-30 Thread Alan Bourke
Try Cast(loColor.GetHue() as Integer) or Cast(loColor.GetHue() as Numeric(12, 2)) ... -- Alan Bourke alanpbourke (at) fastmail (dot) fm ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profo

GDIPlusX GetHue() and GetBrightness()

2022-06-30 Thread Paul Newton
Hi all When I try this: loColor = _Screen.System.Drawing.Color.DarkGray ? loColor.GetHue() ? loColor.GetSaturation() ? loColor.GetBrightness() The result is *** (numeric overflow) 0 38174 A similar problem exists with other colours where R=G=B Any ideas?  Thanks. Paul Newton