Setting colors on components

  • Thread starter Thread starter K Viltersten
  • Start date Start date
K

K Viltersten

I've used the Colors class to access a bunch
of colors for my applications. Now, i'd like
to create a family for of each such color as
follows.

public Color Normal
{get{return Colors.Orange;}}
public Color Washed
{get{return Colors.Yellow;}}
public Color Satured
{get{return Colors.Red;}}

However, i don't really feel like setting up
a static map for each (most) of the colors.
I'd strongly prefer a facility that would
simply give me a washed and a saturated
version of whatever i put in.

Hints other than "write it yourself, you
lazy bum!", may i hope?
 
However, i don't really feel like setting up
a static map for each (most) of the colors.
I'd strongly prefer a facility that would
simply give me a washed and a saturated
version of whatever i put in.

Hints other than "write it yourself, you
lazy bum!", may i hope?

Color matrices are wonderful for this. But it'll be up to you to decide on
the matrix...!

Check out this guy's excellent page, and consider posting further questions
on this in microsoft.public.dotnet.framework.drawing:
http://www.bobpowell.net/faqmain.htm

I found another excellent page on matrices when I was doing something a
while back, but if I have the link at all it's at home, not here, so if I
remember to dig it up I'll post it too. Of course, there's always Google....
 
However, i don't really feel like setting up
Color matrices are wonderful for this. But it'll be up to you to decide on
the matrix...!

Check out this guy's excellent page, and consider posting further
questions on this in microsoft.public.dotnet.framework.drawing:
http://www.bobpowell.net/faqmain.htm

I found another excellent page on matrices when I was doing something a
while back, but if I have the link at all it's at home, not here, so if I
remember to dig it up I'll post it too. Of course, there's always
Google....


Thanks to all!
 
Back
Top