title: Analysing a png (1bit color) for pixel
body: <p>Today I want to know how I analyse a png image with 1 bit color depth (100*30) pixel.</p>
  
  <p>The pixels in the image are numbered 0..99 for the first row, 100..199 for the second row etc. White pixels represent ascii codes. The ascii code for a particular white pixel is equal to the offset from the last white pixel. For example, the first white pixel at location 65 would represent ascii code 65 ('A'), the next at location 131 would represent ascii code (131 - 65) = 66 ('B') and so on.</p>
  
  <p>The text contained in the image is what i need to encoded in Morse, where "a test" would be encoded as ".- / - . ... -"</p>
  
  <p><img src="https://i.stack.imgur.com/DFhJF.png" alt="This is the picture"></p>
  
  <p>Well, I hope you can help me ;)</p>