Does someone know of an efficient way to adjust the luminance (brightness)
of color without changing the hue, saturation or alpha values. The
System.Drawing.Color class has a GetBrightness() method but there is no
SetBrightness().

Right now I am using P/Invoke to call ColorAdjustLuma() in Shlwapi.dll, but
unfortunately this function is only available from version 5.0 which is
distributed with IE 5, so I cannot be sure it is always available.

Thank you
Henrik

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to