title: AS3 Air How to I set the PrintJob DPI?
body: <p>My photo printer returns a pixel dimensions of 448 x 295. In the printer options I can see that the resolution is 2152 x 1416 (for 6 x 4 inch), If I set my sprite to 2152 x 1416 it comes out way to big.</p>
  
  <p>How do I provide a Sprite at the right scale / DPI?</p>
  
  <p>I have tried:</p>
  
  <pre><code>_printOptions = new PrintJobOptions();
  _printOptions.pixelsPerInch = 346;
  </code></pre>
  
  <p>But gives: Error #1056: Cannot create property <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/printing/PrintJobOptions.html#pixelsPerInch" rel="nofollow">pixelsPerInch</a> on flash.printing.PrintJobOptions</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>So as Khaled Garbaya mentions below make sure the project is set to use AIR 2, set the DPI option, have the bitmapData at 2152 x 1416, and add as a child to a sprite which is set at 448 x 295, hit print and comes out great. </p>