title: Print BMP with ZPL
body: <p>How can I use ZPL II to print a bitmap (BMP) image?</p>
  
  <p>I used ~DY to download the BMP to the printer:</p>
  
  <pre><code>~DYR:PRINT,B,B, &lt;size&gt; , &lt;width&gt; , &lt;data&gt;
  </code></pre>
  
  <p>I am using PHP to send raw data to the printer, so &lt;> variables are coming from that script.
  Using the printer's diagnostic utility I verified that the file was successfully downloaded using that command. I was also able to print that BMP file using TSPL, a different printer language that this particular printer also supports in addtion to ZPL, so I know that the BMP was written correctly.</p>
  
  <p>I tried using the following code to then print the BMP:</p>
  
  <pre><code>^XA
  ^FO0,0^XGR:PRINT.BMP,1,1^FS
  ^XZ
  </code></pre>
  
  <p>But it only spits out a blank label.</p>
  
  <p>What am I doing wrong?</p>