Guide for VB.NET
Core Document Formats
PowerPoint to Bitmap
Additional Features

VB.NET PowerPoint - PPT-to-BMP Conversion

VB Code to Convert PPT to BMP Format by Using PowerPoint Document Converter

VB.NET
Home > .NET Imaging SDK > VB.NET > PowerPoint: Render to Bitmap
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

As we know, MS PowerPoint is and continues to be an important medium for delivering ideas and information. It is not only used in education as traditional presentations but also developed in performance art.
Related .net document control helps:
c# asp.net tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net pdf viewer using c#: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
c# asp.net mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net document viewer open source: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
So, have you ever tried to display your PPT presentation in the format of image to have a better communication with a PPT converter in VB.NET? Or have you ever wanted to use the simplest VB code to insert a wonderful PPT slide to your other documents, such as PDF or Word document file just in the simple form of image? If so, we will show you how to solve the problem in this page, which means you can use a PowerPoint document converter and exporter to render and transform PowerPoint page to image (PPT slide is called page in our .NET PPT product), specifically, let's say PowerPoint to BMP image in VB class, and subsequently, you can view and process the image freely.
  • Why convert PowerPoint document into BMP image (with this VB.NET PPT to BMP converter)?
  • How to render and convert PPT to BMP form in VB.NET program? And can I select single or the entire PPT pages to be converted?
  • What make this VB.NET PPT to BMP transformer and the whole PowerPoint document converter so dramatic?
Why Convert?
MS Office PowerPoint is widely used in education and other applications to show and communicate ideas, and the contents are displayed on PPT slide/page. If you convert PowerPoint to BMP image, it can help you shrink the file size, and then you can display your PPT document BMP image format with loading and viewing at high speed. Meanwhile, converting PPT document to image in VB.NET, say PPT to BMP, can protect the PPT contents from being altered.
How to Convert?
The PPT to BMP image converting function of RasterEdge .NET PPT document converter offers end-users and developers the simplest methods and sample code in VB class for rendering and converting PowerPoint presentations to Bitmap image files just like our other document converters, such as VB.NET PDF Converter, Excel spreadsheets converter in VB and MS Word document converter. And for C# users, please go to the corresponding guide on C# PPT to BMP conversion.
For the detailed converting procedures, please refer to following complete demo APIs and sample code which are easy-to-configure in VB.NET project.

Converting APIs

Before you can call and write following PPT document rendering and converting APIs and methods, you need to create a VB.NET PPT manipulation application and integrate "RasterEdge.Imaging.Basic.dll" and "RasterEdge.Imaging.MSPPT.dll".
' Render PowerPoint Document to get a REImage collection.
Private Function GetPage(pageIndex As Integer) As BasePage Implements PPTXDocument.GetPage
End Function
Private Function toImage() As BaseImage Implements PPTXPage.toImage
End Function
Private Function toImage(height As Integer, width As Integer) As BaseImage Implements PPTXPage.toImage
End Function

' Convert PowerPoint slide to BMP using image conversion APIs.
Private Sub SaveImageFile(image As REImage, filePath As [String]) Implements REFile.SaveImageFile
End Sub
Here are two key instructions on this VB.NET PPT converting library:
  • As batch conversion is also one of the main needs, this smart VB.NET PowerPoint to BMP image converter allows users to select either a certain PPT slide/page to be rendered or the complete PPT document holding multiple pages to be converted.
  • As you can see in the above code, our VB.NET PPT document converter differs from other ones on the particular design of intermediary rendering process. That is to way, converting PowerPoint document into other image files, including BMP, needs to render PPT document page into RasterEdge-defined REImage first, and then you can convert the REImage to any supporting image format.

Converting Code

Please see following sample code in VB class to render and convert PowerPoint to BMP image file. You can see the conversion result just in seconds later.
''' <summary>
''' Render PPTXDocument to image of BMP format
''' </summary>
''' <param name="PowerPointFilePath"></param>
''' <returns></returns>
Public Function RenderPPTXDocumentToBMP(PowerPointFilePath As [String]) As List(Of Stream)
' A list of stream which contains the image data of the BMP image.
Dim buffer As New List(Of Stream)()

Dim doc As New PPTXDocument(PowerPointFilePath)
For i As Integer = 0 To doc.GetPageCount() - 1
Dim page As PPTXPage = DirectCast(doc.GetPage(i), PPTXPage)
Dim temp As REImage = DirectCast(page.ToImage(), REImage)
Dim imageStream As New MemoryStream()
If temp IsNot Nothing Then
temp.Convert(imageStream, ImageFormat.Bitmap)
buffer.Add(imageStream)
End If
Next

Return buffer
End Function
Why Choose?
Check these product features of our PPT document converter.

Simple Downloading and Installing

Users just need to download RasterEdge .NET Imaging SDK from any webpage of RasterEdge.com to your PC and decompress the package zip file, then this excellent VB.NET PPT document converter can be found and used.

Multiple Image and Document Formats Are Supported

This VB.NET PPT document converter allows for PowerPoint conversion to both images and documents, like rendering PowerPoint to BMP, GIF, PNG, TIFF, JPEG, SVG or PDF.

Full Rendering and Converting Options

This VB.NET PPT converting toolkit enables users to set and customize PPT rendering and converting parameters on image resolution, pixel format, scaling factor and basic image width and height.


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