Guide for C#
Core Document Formats
PowerPoint to Other Raster Image Formats (Jpeg, Gif, Png, Jbig2)
Additional Features

C# PowerPoint - Convert to Other Raster Images

C# Guide: How to Convert PowerPoint to JPEG, GIF, PNG or BMP Raster Image

Visual C#
Home > .NET Imaging SDK > C# > PowerPoint: Render to Other Raster Images
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

C# PowerPoint to Raster Image Conversion
RasterEdge C# PowerPoint Converting Toolkit can not only convert PowerPoint to PDF document file, but also render PowerPoint to various raster image files, like png, jpeg, bmp, and gif. On this article, we will answer the question of how to convert PowerPoint to JPEG, GIF, PNG or BMP raster image using C# API and demo code.
Related .net document control helps:
asp.net view tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
c# asp.net excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net pdf viewer control free: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
Following is the article layout of this C# PowerPoint to raster image converting tutorial.
  • Main functions of C# PowerPoint to raster image converter SDK
  • How to convert PowerPoint to JPEG, GIF, PNG or BMP using C# API and sample code
C# PowerPoint Converter SDK Features
  • Professional C# PowerPoint converting control toolkit designed for .NET Framework application
  • Offer C# APIs to convert PowerPoint to customized raster image file slide by side
  • Resolution and size can be adjusted in C# PowerPoint to raster image converting process
  • PowerPoint file that needs to be converted can be loaded from PC file or web server
  • Offer royalty-free and perpetual developer license with reasonable price for customers
How to Convert PowerPoint to Raster Image
This C# PowerPoint to image converter library toolkit makes it extremely easy to convert PowerPoint to raster image file. The content below will show you detailed programming guidance for C# PowerPoint to raster image conversion.

Four Supported C# Raster Image Formats

In this section, we will briefly introduce four types of raster image formats, namely, JPEG, GIF, PNG and BMP.
  • JPEG: Short for Joint Photographic Experts Group, a common image format for digital photos, uses lost compression mechanism to store image quality.
  • GIF: Short for Graphics Interchange Format. GIF image format will not loss image quality when its file size is reduced.
  • PNG: Short for Portable Network Graphics. PNG is also compressed in a lossless compression way. This image format allows C# developers to adjust the degree of transparency background.
  • BMP: The file name extension for the Bitmap image file format, a raster graphics image file format used to store bitmap digital images.

C# APIs for PowerPoint to Raster Image Conversion

The general process of all PowerPoint to raster image conversion consists of two main aspects: Getting & Rendering PPTXPage to REImage in C# and converting REImage to desired raster image format. In this section, we list the main C#.NET APIs that will be used in PowerPoint to image converting. Note: if you want to customize your PowerPoint-to-Image converting application, please go to this online page for setting PowerPoint rendering parameters using C# code.
// in PPTXDocument
void ConvertToImages(ImageType target, String directory, String fileName);
void ConvertToImages(ImageType targetType, float zoomValue, String directory, String fileName);
// in PPTXPage
void ConvertToImage(ImageType toType,String filePath);
void ConvertToImage(ImageType toType, float zoomValue, String filePath);

C# Demo Code for Converting PowerPoint to Raster Image

Here we give C# sample code for PowerPoint to PNG image conversion. You can also use the same way to achieve PowerPoint to JPEG conversion, PowerPoint to GIF conversion, and PowerPoint to BMP conversion. Note, C# users can either choose to convert whole PowerPoint to images at a time, or convert specified page to image file, stream or byte array. Please link to VB.NET PPT to raster image conversion if you are prorgamming in VB.NET class.
// load a PowerPoint document
PPTXDocument doc = new PPTXDocument(@"c:\sample.pptx");

// convert all PowerPoint document pages/slides to PNG files
// page index will automatically append to the file name
doc.ConvertToImages(ImageType.PNG, @"c:\Test\", "sample");

// convert single page/slide to PNG
PPTXPage page = (PPTXPage)doc.GetPage(0);
page.ConvertToImage(ImageType.PNG, @"c:\Test\sample1.png");

// convert to PNG with a zoom in factor of 2f
page.ConvertToImage(ImageType.PNG, 2f, @"c:\Test\sample1.png");
Apart from above mentioned four raster image formats, this C# PowerPoint converter control SDK also supports converting PowerPoint to Bitmap. Besides, if you want to perform other documents conversions, like C# PowerPoint to TIFF conversion, C# PowerPoint to PDF conversion, and C# PowerPoint to SVG conversion, this C# PowerPoint converting solution is also suitable.


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster Edge.com