Click here to Skip to main content
12,405,895 members (39,591 online)
Click here to Skip to main content
Add your own
alternative version

Stats

63.9K views
1.7K downloads
44 bookmarked
Posted

Export of PowerPoint slides to high quality Bitmaps

, 9 Jun 2005 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Staffan Sjöstedt
Web Developer
Sweden Sweden
Running the company LäraNära AB in Sweden, developing and marketing a tool for distance learning.

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 5 Pin
SYED SH23-Jul-10 9:11
memberSYED SH23-Jul-10 9:11 
QuestionExport of PowerPoint slides to Text? Pin
gecgin7-Jul-09 10:16
membergecgin7-Jul-09 10:16 
AnswerRe: Export of PowerPoint slides to Text? Pin
Staffan Sjöstedt9-Jul-09 20:14
memberStaffan Sjöstedt9-Jul-09 20:14 
GeneralRequest for VS2005/8 version Pin
UltraWhack12-Jun-08 3:35
memberUltraWhack12-Jun-08 3:35 
GeneralRe: Request for VS2005/8 version Pin
Staffan Sjöstedt9-Jul-09 20:28
memberStaffan Sjöstedt9-Jul-09 20:28 
GeneralHej! Pin
Zorbek1-Feb-07 22:52
memberZorbek1-Feb-07 22:52 
GeneralRe: Hej! Pin
Staffan (xtaff) Sjstedt2-Feb-07 1:59
memberStaffan (xtaff) Sjstedt2-Feb-07 1:59 
GeneralRe: Hej! Pin
Zorbek2-Feb-07 5:49
memberZorbek2-Feb-07 5:49 
QuestionSingleton for export of PowerPoint presentations into good looking bitmaps [modified] Pin
jschafer6-Dec-06 10:03
memberjschafer6-Dec-06 10:03 
AnswerRe: Singleton for export of PowerPoint presentations into good looking bitmaps Pin
Staffan (xtaff) Sjöstedt6-Dec-06 10:54
memberStaffan (xtaff) Sjöstedt6-Dec-06 10:54 
GeneralHardwired capture size Pin
fwsouthern9-Jun-05 8:03
memberfwsouthern9-Jun-05 8:03 
GeneralRe: Hardwired capture size Pin
Staffan (xtaff) Sjöstedt9-Jun-05 19:40
memberStaffan (xtaff) Sjöstedt9-Jun-05 19:40 
Generalhmmmm Pin
Anonymous9-Jun-05 3:39
sussAnonymous9-Jun-05 3:39 
GeneralRe: hmmmm Pin
Staffan (xtaff) Sjöstedt9-Jun-05 19:50
memberStaffan (xtaff) Sjöstedt9-Jun-05 19:50 

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

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

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