Extension library for actions in System.Drawing.Color

Someone wrote a good library of extension methods for System.Drawing.Color.

It would be nice to say:

Color.Red.AdjustBrightness(.5) Color.Red.AdjustAlpha(.5) Color.Red.ToHSV() 

or something like that.

Alpha is simple, but others become time consuming because you need to go and finish all the right math equations for HSV and HSB and all these fun things.

Hoping someone else did the job :-) Microsoft doesn't seem to want to do this for me.

+4
source share
1 answer

CodeProject has some code for the HSBColor class. It does not include extension methods, but they would be very easy to write if you had the HSBColor class and the conversion code associated with it.

+1
source

All Articles