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.

Mon Mar 25, 2019 9:44 am

Hello.
Do you have functionality (some flag or something like that) in Spire.Presentation to determine, whether a picture was cropped?

AdamShakhabov
 
Posts: 40
Joined: Wed Sep 26, 2018 12:03 pm

Mon Mar 25, 2019 11:12 am

Hello,

Thank you for contacting us.
Sorry there is no direct way to determine whether a picture is cropped at present. Our Dev team will do more investigations to check if it can be achieved. Once there is any update, we will let you know. Sorry for the inconvenience caused. Besides, please share us with your sample PPT file which you need to determine, so that our Dev team could look into the issue accurately. You could send it to us via email (support@e-iceblue.com). Thanks in advance.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Mon Mar 25, 2019 3:10 pm

Hello.

It does not depend on which actually presentation I am using. The question is like "Do you have your own bool property "cropped" or something like that or I have to check it manually, looking for some other signs of a picture being cropped.

AdamShakhabov
 
Posts: 40
Joined: Wed Sep 26, 2018 12:03 pm

Tue Mar 26, 2019 1:33 am

Hello,

Sorry there is no bool property of "cropped" at present, our Dev team will further looking into this issue to see if there is any approach. And we will keep you posted about the progress. Thanks for your understanding.

Sincerely,
Lisa
E-icbelue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Tue Apr 16, 2019 10:57 am

Hello,

Thanks for your patient waiting.
Glad to inform that we just released Spire.Presentation Version:4.4.3 in which we added a bool property to judge whether the picture is cropped or not. Please download it from the following links and refer to the code snippet to test your case.
Website:http://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html
Nuget:https://www.nuget.org/packages/Spire.Presentation/
Code: Select all
 Presentation ppt = new Presentation();
 ppt.LoadFromFile(@"test.pptx");
 foreach (IShape shape in ppt.Slides[0].Shapes)
 {
     if (shape is SlidePicture)
     {
         SlidePicture slidepicture = (SlidePicture)shape;
         //judge if cropped
         bool test = slidepicture.IsCropped;
     }
 }

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Presentation

cron