I'm parsing a PowerPoint file, some slides contains images. How do I detect if there are images in the slide?
I was checking within all shapes in the slide but I don't see any properties that could let me know if there is an image. Currently if I were to check the shape.AlternativeText I noticed they may contain the image name or path with extensions .png, .jpg, .gif etc. Which lets me know which shapes contains images but this doesn't apply to all images and is not consistent.
Anyone know of a way to detect for an image? A shape.hasImage would have been nice.
Thanks in advance.
shape.Fill.FillType == FillFormatType.Picture
. Also check here might be useful snippet. - Renatas M.