C#: Online Guide
How To: powerpoint SDK
Insert Image
Home ›› XDoc.PowerPoint ›› C# PowerPoint: Insert Image

C# PowerPoint - Insert Image to PowerPoint File Page in C#.NET

Insert Image to PowerPoint Document Page in C# Project


RasterEdge XDoc.PowerPoint Library provide some methods for developers to insert image to PowerPoint file pages. While, if you want to insert various type image, you may need add the reference RasterEdge.XImage.Raster.dll into your project. If not, you can only add bitmap to the  PowerPoint document page(s).

Related .net document control helps:
asp.net word file viewer: ASP.NET Office Word Document Viewer: view MS Office Word files online using C# in ASP.NET web applications
asp.net dnn document viewer: DNN Document Viewer Control: view, annotate, redact, convert documents in dotnetnuke ASP.NET
asp.net text document viewer: C# HTML5 Viewer: Load, View, Convert, Annotate and Edit OpenOffice, CSV and Text file
asp.net edit pdf text: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net redact pdf: ASP.NET Redact PDF Document Control: redact, remove PDF text, images in web browser using C# ASP.NET
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net powerpoint document viewer: ASP.NET PowerPoint Document Viewer Control: view pptx files online in C# using ASP.NET

Add Image to PowerPoint File Page Using C#

Add references:










Using namespace:

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.PowerPoint;

  using RasterEdge.Imaging.Raster.Core;

Add image to PowerPoint file page using C#.

PPTXDocument doc = new PPTXDocument(@"C:\1.pptx");
BasePage page = doc.GetPage(0);
REImage image = new REImage(@"C:\logo2.jpg");
page.AddImage(image, new Point(100, 100));