title: Export PowerPoint shape with real size
body: <p>I need to export shape selected in PowerPoint as png image with real shape size. I use this code for export:</p>
  
  <pre><code>var args = new object[] { filePath, Microsoft.Office.Interop.PowerPoint.PpShapeFormat.ppShapeFormatPNG, 0, 0, Microsoft.Office.Interop.PowerPoint.PpExportMode.ppRelativeToSlide };
  objectShape.GetType().InvokeMember("Export", System.Reflection.BindingFlags.InvokeMethod, null, objectShape, args); // Export to file on disk
  </code></pre>
  
  <p>On disk I have image with incorrect proportions and Height/Width. I've tried different values of PpExportMode enumeration parameter and just in case I changed the zoom in PP to 100%. But I have no correct results. For rectangle-based shapes it works correctly. But for example for stars or callout shapes real size doesn't equal to the shape Height/Width properties. It happens because of little tongue at the bottom of shape.</p>
  
  <p><img src="https://i.stack.imgur.com/LuXah.png" alt="enter image description here"></p>
  
  <p>Does anybody know how to export these shapes correctly? </p>