I am composing slides in a PresentationEx.
If I compose the slide and it contains a jpg and I GetThumbnail and send the bitmap to a jpg file, the output does not contain the included jpg image (it includes the rest of the composition).
If I compose the slide, write the pptx file, read the file back in, and then GetThumbnail the output does contain the included jpg. Obviously, I do not want to have to write and read the pptx to create the output jpg image.
Segment of code (oLesson is a PresentationEx object which has the composed slide):
PPTx.writeFilePPTxContinue(oLesson, sPath)
oLesson = Nothing
oLesson = New PresentationEx(sPath)
oDestSlide = oLesson.Slides(0)
oBitmap = oDestSlide.GetThumbnail(3.0F, 3.0F)
sPath = getMIRShareDir() + gvDocPages.DataKeys(iRow).Values(3) + ".jpg"
Trace.Warn("Write " + sPath)
oBitmap.Save(sPath, Drawing.Imaging.ImageFormat.Jpeg)
If I include the three grayed lines, the output is fine. If I remove the three lines, the jpg included on the page does not make it to the bitmap output.
Any ideas what could be wrong or how to fix it without writing a temporary pptx file?
Thanks