title: Transparent pixels using HTML5 canvas and getImageData?
body: <p>In my application I need to get some images, process them, and save for later use. So I'm drawing them to a temporary canvas, then getting with <code>getImageData</code> function. But in output transparency is lost...</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var tempCanvas = document.createElement('canvas');
  var tempContext = tempCanvas.getContext('2d');
  
  tempContext.drawImage(image, 0, 0);
  var imageData = tempContext.getImageData(0, 0, image.width, image.height);
  </code></pre>
  
  <p>My <code>image</code> has some transparent pixels but after this there are no transparent pixels in <code>imageData</code> how can I solve this issue?</p>
  
  <p>Is there any way to convert Html Image to ImageData,  so I can process it and then draw to canvas?</p>