title: Create 1-bit bitmap from HTML Canvas in javascript
body: <p>I need to get a 1-bit bitmap out of an HTML5 Canvas. </p>
  
  <p>The canvas is black-and-white.
  However, I can only use toUrlData() with png/jpeg outputs, but can't find any way to generate a bitmap (and change the color depth to 1-bit).</p>
  
  <p>Are there any available solutions for this type of conversion?
  Or maybe a javascript library that can write a bitmap image?</p>