Dear Dan,
This feature is not supported yet. But you can use Slide.Getthumbnail(Size, Rectangle, IDrawingControl) to get the image of selected shapes of your choice.
For example the following code takes the image of those shapes whose alternative text has been set to "draw". I have also attached the source presentation and generated image of slide
*************************************************************************
internal class ListDrawingControl : IDrawingControl
{
Hashtable m_set;
public ListDrawingControl(ICollection shapesToDraw)
{
m_set = new Hashtable(shapesToDraw.Count);
IEnumerator enumerator = shapesToDraw.GetEnumerator();
while (enumerator.MoveNext())
{
m_set[enumerator.Current] = enumerator.Current;
}
}
#region IDrawingControl Members
public Aspose.Slides.DrawingControlDecision CheckObject(object objectToCheck, System.Collections.IList parents)
{
if (m_set.Contains(objectToCheck))
return DrawingControlDecision.Draw;
else
return DrawingControlDecision.IgnoreAskAboutChildren;
}
#endregion
}
static void GetThumbnailPartly()
{
Presentation pres = new Presentation(@"c:\srcShapes.ppt");
Slide sld = pres.GetSlideByPosition(1);
//Select all shapes whose alternative text is draw
List lstShapes = new List();
foreach (Shape shp in sld.Shapes)
{
if (shp.AlternativeText=="draw" )
lstShapes.Add(shp);
}
//Create object of ListDrawingControl and add all shapes
ListDrawingControl lstDrawingCntrl = new ListDrawingControl(lstShapes);
//Get the image of selected shapes
int imgWidth = pres.SlideSize.Width;
int imgHeight = pres.SlideSize.Height;
System.Drawing.Rectangle rectPane = new System.Drawing.Rectangle(0, 0, pres.SlideSize.Width, pres.SlideSize.Height);
Image img =sld.GetThumbnail(new Size(imgWidth, imgHeight),rectPane, lstDrawingCntrl);
img.Save(@"c:\outPartlyOutput.jpg");
}