Re: manipulating hex values
- From: "darrel" <notreal@xxxxxxxxxxx>
- Date: Thu, 2 Mar 2006 13:19:11 -0600
Use the Int32.Parse(String, System.Globalization.NumberStyles) overload to
parse the string, and perform math on it. Then use the
Int32.ToString(String) method to translate it back. Example:
Kevin:
Excellent! That worked wonderfully.
Alas, I'm finding that subtle color shifting really isn't best handled by
simple math. Looks like I'm going to want to adjust each shade differently
depending on the source file.
So, seemed great in concept, but not so great in practice.
However, I now have a nice script for future reference. Thanks!
-Darrel
.
- Follow-Ups:
- Re: manipulating hex values
- From: Kevin Spencer
- Re: manipulating hex values
- References:
- manipulating hex values
- From: darrel
- Re: manipulating hex values
- From: Kevin Spencer
- manipulating hex values
- Prev by Date: Re: Mail sent through IIS virtual SMTP server not arriving
- Next by Date: Re: Fill Dataset with two tables
- Previous by thread: Re: manipulating hex values
- Next by thread: Re: manipulating hex values
- Index(es):
Relevant Pages
|