Re: Setting resolution of exported images from VB
- From: "mario70xx@xxxxxxxxxxx" <mario70xx@xxxxxxxxxxx>
- Date: 17 May 2006 05:47:22 -0700
Steve Rindsberg wrote:
The code I used for the test
Hi Steve.
I have not inserted the code because it is the standard code used for
export a slide as Jpeg that I found in the PPTools. FAQ section.
The needed bit should only be a few lines. Pop it in here so we can have a look
if you would. Thanks.
Set PPApp = CreateObject("PowerPoint.Application")
If PPApp Is Nothing Then Exit Sub
PPApp.Visible = True
Set PPpres = PPApp.Presentations.Open(sFile, True, , False)
If PPpres Is Nothing Then
PPApp.Quit
Exit Sub
End If
PPpres.Slides(SlideIndex).Export ImageFile, "jpg", ImageWidth,
ImageHeight
PPpres.close
PPApp.Quit
If you have a look at this article
I use the .Export method where I can specify the slide height and width
in pixels but not the dot-per-inch resolution. Using PowerPoint
Application you can specify the resolution by a register but it doesn't
work with the .Export method.
I searched for a specific property for this task but I was not able to
find it
There's no specific property for DPI because it's rather meaningless.
How have you determined that it doesn't work?
If you're opening the images in an image editor and it's telling you 72dpi, that's
incorrect information, most probably.
If you're asking for an image that's, say, 2000 pixels wide, are you getting that
many pixels? If so, it's working as it should.
http://support.microsoft.com/default.aspx?scid=kb;en-us;827745 you can
see that the maximum value is 307 dpi.
In any case, I checked the produced images with Adobe Photoshop and I
analyzed the JFIF file using a hex editor.
I found a work around that I don't like but it works: I change the dpi
resolution directly on the JFIF file.
I always searching for a solution using PPT activeX.
Regards,
Mario
.
- Follow-Ups:
- Re: Setting resolution of exported images from VB
- From: Steve Rindsberg
- Re: Setting resolution of exported images from VB
- References:
- Setting resolution of exported images from VB
- From: mario70xx@xxxxxxxxxxx
- Re: Setting resolution of exported images from VB
- From: Steve Rindsberg
- Re: Setting resolution of exported images from VB
- From: mario70xx@xxxxxxxxxxx
- Re: Setting resolution of exported images from VB
- From: Steve Rindsberg
- Setting resolution of exported images from VB
- Prev by Date: Re: how do i format a floppy disk?
- Next by Date: Re: How do I insert a wma sound file or covert wma file to wav fil
- Previous by thread: Re: Setting resolution of exported images from VB
- Next by thread: Re: Setting resolution of exported images from VB
- Index(es):
Relevant Pages
|