Click here to Skip to main content
Licence CPOL
First Posted 9 Jun 2005
Views 50,848
Bookmarked 44 times

Export of PowerPoint slides to high quality Bitmaps

By | 9 Jun 2005 | Article
Export powerpoint slides as bitmaps using screen capture.

Introduction

I’m currently working on a project that involves bitmaps from PowerPoint (PP) presentations. Saving a presentation as JPEG from PP doesn’t satisfy me at all. Hard compressed files, no anti alias text, no control over the size of the images etc. etc. frustrates me really. If you have experienced the same, then read on.

Background

An article by Mark Belles on screen capturing here at CodeProject inspired me to create the following application.

Using the code

The main engine is a class, PowerPointDump that has only one method, Dump. Dump loops through all the slides in the presentation window and dumps the screens into PNG images, but first it sets the size of the presentation window to match our choice of bitmap size.

To enable myself to control PowerPoint I've made a reference to the "Microsoft Office 9.0 Object Library" COM object. So you need PP in your computer (suffice to say?). I could of course have used the primary interop assembly (PIA) for office XP, but I’m still on Office 2000.

Just for fun I’ve used a singleton pattern for the engine. Its use is straightforward:

int result = 
    PowerPointDump.Instance.Dump(inputPath, 
              outputPath, 800, 600,
              Screen.PrimaryScreen.Bounds.Width,
              Screen.PrimaryScreen.Bounds.Height );

Points of interest

With the help of the screen capture code, I could realize my idea of how to get nice bitmaps from the PP slides. So this little article is a small payback to all of you contributing to CodeProject.

History

  • Posted on June 8th, 2005.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Staffan Sjöstedt

Web Developer

Sweden Sweden

Member

Running the company LäraNära AB in Sweden, developing and marketing a tool for distance learning.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 PinmemberSYED SH9:11 23 Jul '10  
QuestionExport of PowerPoint slides to Text? Pinmembergecgin10:16 7 Jul '09  
AnswerRe: Export of PowerPoint slides to Text? PinmemberStaffan Sjöstedt20:14 9 Jul '09  
GeneralRequest for VS2005/8 version PinmemberUltraWhack3:35 12 Jun '08  
GeneralRe: Request for VS2005/8 version PinmemberStaffan Sjöstedt20:28 9 Jul '09  
GeneralHej! PinmemberZorbek22:52 1 Feb '07  
GeneralRe: Hej! PinmemberStaffan (xtaff) Sjstedt1:59 2 Feb '07  
GeneralRe: Hej! PinmemberZorbek5:49 2 Feb '07  
QuestionSingleton for export of PowerPoint presentations into good looking bitmaps [modified] Pinmemberjschafer10:03 6 Dec '06  
AnswerRe: Singleton for export of PowerPoint presentations into good looking bitmaps PinmemberStaffan (xtaff) Sjöstedt10:54 6 Dec '06  
GeneralHardwired capture size Pinmemberfwsouthern8:03 9 Jun '05  
GeneralRe: Hardwired capture size PinmemberStaffan (xtaff) Sjöstedt19:40 9 Jun '05  
Generalhmmmm PinsussAnonymous3:39 9 Jun '05  
GeneralRe: hmmmm PinmemberStaffan (xtaff) Sjöstedt19:50 9 Jun '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120517.1 | Last Updated 9 Jun 2005
Article Copyright 2005 by Staffan Sjöstedt
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid