Jun 25, 2017 04:40 PM
(This post was last modified: Jul 30, 2017 08:57 PM by VmX5.)
So I've drawn pixels onto a bitmap using Bitmap.SetPixel() and I've checked the saved file using a photo editor to check if the correct ARGB values were drawn. But now the issue is when I try to read it some values are 1 or 2 off.
This is the function I wrote to translate image to text
These are the 2 pixels, they contain 4 chars each. (Enlarged ofc)
![[Image: 635d1c439418b33a8da87132cdb9b464.png]](https://i.gyazo.com/635d1c439418b33a8da87132cdb9b464.png)
First Pixel : [76, 111, 114, 101]
Second Pixel : [109, 32, 105, 112]
But .Net would read:
First Pixel : [76, 110, 114, 100]
Second Pixel : [109, 32, 105, 112]
So is there something off with my code, or is there some other function I should use? or...? Yeah.
~VmX5
This is the function I wrote to translate image to text
These are the 2 pixels, they contain 4 chars each. (Enlarged ofc)
![[Image: 635d1c439418b33a8da87132cdb9b464.png]](https://i.gyazo.com/635d1c439418b33a8da87132cdb9b464.png)
First Pixel : [76, 111, 114, 101]
Second Pixel : [109, 32, 105, 112]
But .Net would read:
First Pixel : [76, 110, 114, 100]
Second Pixel : [109, 32, 105, 112]
So is there something off with my code, or is there some other function I should use? or...? Yeah.
~VmX5



![[Image: BpB8rCz.png]](https://i.imgur.com/BpB8rCz.png)
![[Image: cUoZABI.png]](https://i.imgur.com/cUoZABI.png)