This project is read-only.
1

Closed

RGB values seem to be incorrectly converted to hex

description

Hi,
 
We are having a bit of an issue with the ToHexString extension method as it appears to incorrectly convert int values to hex strings. We pass in the int value of 51, and the method is returning 3531 whereas it should be returning 33. We have changed the method to simply use int.ToString("X") which solves the problem, but we were wondering why the method was implemented as it is?
 
Regards,
Brian
Closed Dec 6, 2009 at 11:06 AM by purekrome
Fixed in release 1.4.1.0

comments

purekrome wrote Dec 6, 2009 at 11:05 AM

Because i'm blond. And I fail.

So i've now patched the code and hopefully none shall ever speak of this embarassing moment ever again :)

Cheers for the bug report :)

wrote Dec 6, 2009 at 11:06 AM

gurrie wrote Jan 4, 2010 at 11:12 AM

Thanks man! It has been purged from my memory ;-)

wrote Feb 22, 2013 at 12:55 AM

wrote May 16, 2013 at 12:20 PM