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.

Sun Nov 27, 2016 10:56 am

Hello,
In video media, is it possible to insert a video poster frame or other picture in replacement of "(i) No Picture" ?
Thanks

jclv
 
Posts: 3
Joined: Sun Nov 27, 2016 10:50 am

Mon Nov 28, 2016 1:49 am

Dear jclv,

Thanks for your inquiry.
Yes, here is sample for your kind reference.
Code: Select all
            string ImageFile = @"D:\bg.png";
            IVideo video = presentation.Slides[0].Shapes.AppendVideoMedia(@"E:\KuGou\media.mp4", new RectangleF(100, 100, 20, 20));
            video.PictureFill.Picture.Url = ImageFile;

If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Mon Nov 28, 2016 5:56 pm

Hello,
thanks for your reply.
Is it possible to embed the image in the presentation ?
Best regards

jclv
 
Posts: 3
Joined: Sun Nov 27, 2016 10:50 am

Tue Nov 29, 2016 1:58 am

Dear jclv,

Thanks for response.
Here is a guide for your kind reference.
http://www.e-iceblue.com/Tutorials/Spir ... ument.html

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue Nov 29, 2016 9:45 am

Sorry, I explain :
in your sample : video.PictureFill.Picture.Url = ImageFile => ImageFile is referenced in présentation but is an extranal file ... can I embed this file in presentation and reference it in video.PictureFill.Picture (... see video.PictureFill.Picture.EmbedImage ? but don't see how to set ?)
Thanks

jclv
 
Posts: 3
Joined: Sun Nov 27, 2016 10:50 am

Wed Nov 30, 2016 1:54 am

Dear jclv,

Sorry that I misunderstood you.
And I am afraid that there is no way to embed that file and reference it in image in Spire, the image can only be an external file.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.Presentation