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 May 01, 2016 5:47 pm

TNX

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Mon May 02, 2016 5:38 am

Hello,

Here is the code for stretching an image across slide fully.
Code: Select all
Dim presentation As New Presentation()
Dim ImageFile2 As String = "..\..\PPT.jpg"
Dim rect As RectangleF = New RectangleF(0, 0, presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height)
presentation.Slides(0).Shapes.AppendEmbedImage(ShapeType.Rectangle, ImageFile2, rect)
presentation.Slides(0).Shapes(0).Line.FillFormat.SolidFillColor.Color = Color.FloralWhite
presentation.SaveToFile("InsertPicture.PPTx", FileFormat.Pptx2010)

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon May 02, 2016 3:32 pm

Thank you, Gary!

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Return to Spire.Presentation