title: ESC/POS Protocol print bitmap
body: <p>I need to print an graphical image using ESCPOS protocol.
  So far I have researched following commands available on my printer:</p>
  
  <blockquote>
    <p>GS v 0 m xL xH yL yH d1 … dk</p>
    
    <p>ESC * m nL nH d1…dk</p>
  </blockquote>
  
  <p>Let's say I got following image where <em>0</em> and <em>1</em> represents a single pixel:</p>
  
  <pre><code>   |||||
  -- 00000
  -- 01010
  -- 01010
  ---00000
  </code></pre>
  
  <ol>
  <li><p><strike>Which command I should use for this purpose?</strike></p></li>
  <li><p>It is total unclear for me from documentations how to use these commands to print image and how printer reads my image and how I should pass that data. Command to print top first few lines of the image above with explanations of all parameters would be very helpful.</p></li>
  </ol>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>Regarding 1. - <a href="https://stackoverflow.com/questions/41039088/esc-pos-select-bit-image-mode-vs-print-raster-bit-image">ESC/POS &quot;Select bit-image mode&quot; vs &quot;Print raster bit image&quot;</a></p>