Re: manipulating hex values

Tech-Archive recommends: Speed Up your PC by fixing your registry



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


.



Relevant Pages

  • Re: Modular exponentiations in bc
    ... (All the math I need can be handled by normal operators, ... Thanks for your feedback. ... Alas, the | operator is not mentioned ...
    (comp.os.linux.misc)
  • Re: Woman steals 1997 dissertation
    ... >>> happens all the time (alas) that people get PhD's in math ... >>> at that age or older. ... > My guess is that David is not bemoaning the simple proposition ...
    (sci.math)
  • Re: answers please...
    ... produce (ie., to translate,) my input states to a file. ... making claims that he has found faults in the laws of math and logic ...
    (comp.compression)
  • Re: FINDING OUT WHATS LEFT
    ... mattG wrote: ... I did the math to do that, but what sort of formula am I ... You should be able to do a plain integer division (ie, no fraction, decimal, remainder, etc.) to arrive at the correct number. ... If you can explain why you weren't able to translate the math you did into a line of code like that, that could help you better understand how to do it successfully in the future (for that matter, the act of explaining it may be sufficient for you to have that "aha!" ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: RNG to VB
    ... DiZzY wrote: ... > Can someone translate the code below to VB? ... VB doesn't have an unsigned Long datatype, so the math would have to be ...
    (microsoft.public.vb.general.discussion)