mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Changed ToHex-Conversion to use upper case characters
This commit is contained in:
parent
328074bfa2
commit
263dddcee3
@ -20,10 +20,10 @@
|
|||||||
for (int bx = 0, cx = 0; bx < bytes.Length; ++bx, ++cx)
|
for (int bx = 0, cx = 0; bx < bytes.Length; ++bx, ++cx)
|
||||||
{
|
{
|
||||||
byte b = ((byte)(bytes[bx] >> 4));
|
byte b = ((byte)(bytes[bx] >> 4));
|
||||||
c[cx] = (char)(b > 9 ? b + 0x37 + 0x20 : b + 0x30);
|
c[cx] = (char)(b > 9 ? b + 0x37: b + 0x30);
|
||||||
|
|
||||||
b = ((byte)(bytes[bx] & 0x0F));
|
b = ((byte)(bytes[bx] & 0x0F));
|
||||||
c[++cx] = (char)(b > 9 ? b + 0x37 + 0x20 : b + 0x30);
|
c[++cx] = (char)(b > 9 ? b + 0x37: b + 0x30);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new string(c);
|
return new string(c);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user