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.

Fri Feb 03, 2017 1:14 am

- Width spire.presentation_2.7.32 version
- This is my code:
Spire.Presentation.Presentation pres = new Spire.Presentation.Presentation();
pres.LoadFromFile(ofd.FileName);
foreach (ISlide iSlide in pres.Slides)
{
foreach (IShape iShape in iSlide.Shapes)
{
try
{
Bitmap image = image = iShape.SaveAsImage();
image.Save(PathNewImage, System.Drawing.Imaging.ImageFormat.Png);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
Can you have me???

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Fri Feb 03, 2017 3:32 am

Dear lemuihuongviet,

Thanks for your inquiry.
Sorry that IShape object doesn't have the SaveAsImage method, but here is a method can save shape to image. Here is a guide for your reference.
https://www.e-iceblue.com/Tutorials/Spi ... B.NET.html
If there is any question, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Sat Feb 04, 2017 4:02 am

Dear Betsy.jiang!
Thanks you very much!!!!!!!!

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Sat Feb 04, 2017 5:37 am

Dear lemuihuongviet,

Thanks for your feedback.
Please feel free to contact us if there is any question. We will be happy to help you.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jul 21, 2017 2:33 pm

Hello,What about transparency of the shape? I try to save image as png,but there is a white background in the image......How can I save the transparency image?

July
 
Posts: 6
Joined: Wed Jun 07, 2017 5:31 am

Mon Jul 24, 2017 3:09 am

Dear July,

Sorry for late reply as weekend.
I have noticed the issue you mentioned, and posted it to our Dev team. We will inform you when there is any progress.
Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jul 28, 2017 7:26 am

Dear July,

Thanks for your waiting.
Now the issue has been fixed in Spire.Presentation Pack Hotfix Version:2.8.35, welcome to have a test.
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Oct 13, 2017 2:53 pm

It`s perfect~
This is what I need~ :P :P

July
 
Posts: 6
Joined: Wed Jun 07, 2017 5:31 am

Mon Oct 16, 2017 2:18 am

Dear July,

Thanks for your feedback.
Please feel free to contact us if there is any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation