[x] Bug
[ ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement
Expected Behavior
BitmapByteQRCode.GetGraphic(20, "#ff0000", "#ffffff") should generate a red graphic, just like BitmapByteQRCode.GetGraphic(20, new byte[] { 0xff, 0x00, 0x00 }, new byte[] { 0xff, 0xff, 0xff }).
Type of issue
[x] Bug
[ ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement
Expected Behavior
BitmapByteQRCode.GetGraphic(20, "#ff0000", "#ffffff")
should generate a red graphic, just likeBitmapByteQRCode.GetGraphic(20, new byte[] { 0xff, 0x00, 0x00 }, new byte[] { 0xff, 0xff, 0xff })
.Current Behavior
The graphic is generated as blue (
#0000ff
).Possible Solution (optional)
Change https://github.com/codebude/QRCoder/blob/master/QRCoder/BitmapByteQRCode.cs line 85 to set
byteColor[i]
instead ofbyteColor[2-i]
Steps to Reproduce (for bugs)
Your Environment