<fgColor theme="6" tint="0.39997558519241921"/> - how do I use tint?

T

Tony Jollans

You can't. You must convert to HLS, apply the tint, and convert back - if
you really need the RGB value, that is, but you don't often need it.
 
D

David Thielen

Hi Dave,

Please refer the following document's "Customizing Theme-Aware Colors"
section
http://msdn.microsoft.com/en-us/library/dd560821.aspx

Thank you - great reference. Which leads to the question:

Anyone have a url to a well written RGB -> HSL and HSL -> RGB
convertor? Preferably in Java but C# is also good. I did a Google
search but the code I found did not look that professional.

This is weird that colors are stored as RGB but then a tint is
applied. (And we then have to go back to RGB when we render the
output.)

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
D

David Thielen

Thank you - great reference. Which leads to the question:

Anyone have a url to a well written RGB -> HSL and HSL -> RGB
convertor? Preferably in Java but C# is also good. I did a Google
search but the code I found did not look that professional.

ps - I can't use Color.Get* for the HSL because I need a Java version
of this. The Java runtime has RGB <--> HSB but not RGB <--> HSL.

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
T

Tony Jollans

The code isn't difficult to write, but I'm not sure it's necessarily enough.
You don't say what colours you are looking at (or why you need to determine
the RGB), but not all colours in Office are held in the same way - there is
some information about Word on my page at
http://www.wordarticles.com/Articles/Colours/2007.htm, but it doesn't hold
true for other apps.
 

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