Setting colors on components

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?
 
J

Jeff Johnson

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....
 
K

K Viltersten

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top