title: cairomm draw single pixel
body: <p>I've a simple boolean matrix I want to see it as an Image. I am using Cairomm. In documentations I see how to draw a line, curve, arc. But I just want to put black and white color to each pixels. Not getting any docs on pixel access. This is what I copied from examples. though I want a monochrome image. Not <code>FORMAT_ARGB32</code> </p>
  
  <pre><code>  Cairo::RefPtr&lt;Cairo::ImageSurface&gt; surface = Cairo::ImageSurface::create(Cairo::FORMAT_ARGB32, matrix.cols(), matrix.rows());
    Cairo::RefPtr&lt;Cairo::Context&gt; context = Cairo::Context::create(surface);
  </code></pre>
  
  <p>right now I am drawing an 1 pixel line</p>
  
  <pre><code>  context-&gt;set_antialias(Cairo::ANTIALIAS_NONE);
  
    context-&gt;save(); // save the state of the context
    context-&gt;set_source_rgb(1.0, 1.0, 1.0);
    context-&gt;paint(); // fill image with the color
    context-&gt;restore(); // color is back to black now
  
    context-&gt;set_source_rgb(0.0, 0.0, 0.0);
    context-&gt;set_line_width(1.0);
    context-&gt;move_to(1.0, 1.0);
    context-&gt;line_to(2.0, 2.0);
    context-&gt;stroke();
  </code></pre>
  
  <p>Is this okay or there is something like <code>context-&gt;draw(row, col, color)</code> ?</p>