Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Jul 02, 2014 2:42 pm

I used the demo code to add an emf file to slide and found the result image blurs. Does Spire.Presentation support emf image as it is or convert it to other format before adding it?
Here is my test code. Thanks for you help.

string ImageFile = @"..\..\..\..\..\..\Data\7982bf0396c48509.emf";
RectangleF rect = new RectangleF(0, 0, presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height);
presentation.Slides[0].Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageFile, rect);
presentation.Slides[0].Shapes[0].Line.FillFormat.SolidFillColor.Color = Color.FloralWhite;

kanliu
 
Posts: 2
Joined: Tue Jul 01, 2014 9:29 pm

Thu Jul 03, 2014 6:18 am

Hello,

Could you please provide us your sample emf file "7982bf0396c48509.emf"? This will help us reproduce your issue and offer you a solution more quickly.
If you have any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Thu Jul 03, 2014 3:08 pm

Thanks for the replay.
Please get the zipped file from attachment. Note it can be added to slide, but looks like it is not as it is. I guess Spire.Presentation converts to other format before adding it.

Kan

kanliu
 
Posts: 2
Joined: Tue Jul 01, 2014 9:29 pm

Fri Jul 04, 2014 2:43 am

Dear Kan,

Thanks for your reply.
You are right. Spire.Presentation converts to png format before adding it.

Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Presentation