AutoShapePath extension request

In our project we need to render AutoShapes based on information extracted with Aspose.Slides.
Many AutoShapes contain of more than one AutoShapePath. And not all AutoShapePath’s inside AutoShape should be painted with using same FillFormat. (such shapes as Bevel e.t.c.)
Could you please provide FillFormat for every AutoShapePath in AutoShape?

Hello,

Sorry for delay, we lost this message.

Actually, you shouldn’t use AutoShapePath anymore. It’s better to use Shape.CreateShapeElement method:
http://www.aspose.com/Products/Aspose.Slides/Api/Aspose.Slides.Shape.CreateShapeElements_overloads.html
It returns array of ShapeElement’s which contain strokes and fill styles for each part of AutoShapes or any other Shape. That is short example how it can be used to draw shapes:

ShapeElement[] elements = shape.CreateShapeElements(sd); foreach(ShapeElement sp in elements) { Brush brush = sp.CreateBrush(); Pen pen = sp.CreatePen(); if(brush != null) { gr.FillPath(brush, sp.GraphicsPath); brush.Dispose(); } if(pen != null) { gr.DrawPath(pen, sp.GraphicsPath); pen.Dispose(); } }

Thanks a lot. We are already using this function, but it seems to habg-up in Aspose.Slides.Background shape. Could you please take a look at this problem?