title: Byte array into the greyscale. Android take photo
body: <p>When I am making photo in android I receive a byte array from camera. I would like to convert this array(image) into the 2 colors - white and black. Any ideas? Changing camera mode to mono/negative is not a sollution for me.</p>
  <p>Greetings.</p>
  <p>EDIT1: Code is in Java</p>