interop Shapes.AddPicture creates incorrect dimension for image
问题 I am using interop to create powerpoint presentation.i use Shapes.AddPicture to add images to slide. Shapes.AddPicture(strImagePath, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse, Convert.ToInt32(shape.Left), Convert.ToInt32(shape.Top), Convert.ToInt32(xmlTempNode.Attributes["imgwidth"].Value), Convert.ToInt32(xmlTempNode.Attributes["imgheight"].Value));//load new image to shape i am passing imageheight as 127, however final slide contains image with