title: How to turn a Width*Height sized 1d array of RGB565 values into an image in C++
body: <p>I have a 1d array of 16 bit integers that represent RGB565 pixels. In my understanding this means:</p>
  
  <p>The 5 most significant bits represent red.
  The 6 next bits represent green.
  The 5 least significant bits represent blue.</p>
  
  <p>the size of the array is width * height and they are known values.</p>
  
  <p>How do I turn this into a file that I can view?</p>
  
  <p>The file format doesn't matter, as long as it's something I can view!</p>
  
  <p>I am aware of Magick++.h but I'm not sure it can do that. I am also open to command line tools for suggestions.</p>