I have the code below i am using to add a picture and pictureframe to a slide. The problem i have is i cant get the pictureframe to show the picture at 100% of its original size. The only example i found of adding pictures to slides has the picture width and height being multiplied by 4. When i then open up the result powerpoint and view properties of the pictureframe, it is scaling the image to 130% or soemthing like that, plus i can see its bigger. I always want the pictureframe to scale the picture to 100%. how can i do this no matter the original picture size.
Slide slide = pres.GetSlideByPosition(1);
//Creating a picture object that will be used to fill the ellipse
Aspose.Slides.Picture pic = new Aspose.Slides.Picture(pres, new MemoryStream(logo));
//Adding the picture object to pictures collection of the presentation
//After the picture object is added, the picture is given a uniqe picture Id
int picId = pres.Pictures.Add(pic);
//Calculating picture width and height
int pictureWidth = pic.Image.Width * 4;
int pictureHeight = pic.Image.Height * 4;
//Calculating the width and height of picture frame
//for whatever reason, aspose measurement unit is pixel * 8
int left = 50 * 8;
int top = 450 * 8;
//Adding picture frame to the slide
PictureFrame frame = slide.Shapes.AddPictureFrame(picId, left, top, pictureWidth, pictureHeight);
Kirk