title: Get a ByteArray from BitmapData in AS3
body: <p>I would like to get a ByteArray from a BitmapData in AS3. I tried the following:</p>
  
  <pre><code>var ba:ByteArray = myBitmapData.getPixels(0,0);
  </code></pre>
  
  <p>It didn't work and I got this error <code>ArgumentError: Error #1063: Argument count mismatch on flash.display::BitmapData/getPixels(). Expected 1, got 2.</code>:</p>