We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Metafile gets cropped

Hi,

I try to insert metafiles to a presentation. In the presentation I look for certain shapes and add the metafile at the shapes position and its size:

Aspose.Slides.Picture pic = new Aspose.Slides.Picture(slide.Parent, (Metafile)mf);

int picID = slide.Parent.Pictures.Add(pic);

Aspose.Slides.PictureFrame pictureframe = slide.Shapes.AddPictureFrame(picID, shape.X, shape.Y, shape.Width, shape.Height);

The problem occurs, when the metafile has transprent parts. I mostly draw barcharts, which have bars on the left side, the rest is transparent. In PPT then the colored part is stretched to the whole size , the transparent part is gone.

Can you help me?

Hi,

Can you please provide the source metafile exhibiting the said problem for investigation?