title: Draw a matrix of numbers as an image with C++
body: <p>I have a quite specific question: I want to draw a matrix of numbers in a greyscale image. The higher the number the brighter the output. Is there a way to do that in a C++ programme without having dependencies to a graphic library like Qt?</p>
  
  <p>I looked through some examples of <a href="http://www.imagemagick.org/Usage/draw/" rel="nofollow">ImageMagick</a>, but I'm not sure how to implement its functions in C++.</p>
  
  <p><strong>Answer</strong>
  In case someone stumbles upon this question:
  a modified code of the example shown <a href="http://www.sfml-dev.org/tutorials/2.3/start-linux.php" rel="nofollow">here</a> was a handy and easy solution</p>