Adding a Picture to a Presentation Slide


You can use Aspose.Slides Cloud API to add pictures to PowerPoint documents. To add a picture to a presentation slide, you can use a bitmap or vector image. You can crop the image, set some transformation effects (such as an Alpha Bi-Level effect, blur effect, duotone effect, luminance effect, etc.), use stretch or tile fill mode. The code examples in this article use CreateShape method.


Use MyImage.png file to add a 400x300 picture at coordinates (20, 20) to the second slide in MyFolder/MyPresentation.pptx document saved to the default storage. Use tile fill mode for the image.


Image example

cURL Solution

The result:

Tiled picture

SDK Solutions


Using an SDK (API client) is the quickest way for a developer to speed up development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.