We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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?


Sorry for delay, we lost this message.

Actually, you shouldn’t use AutoShapePath anymore. It’s better to use Shape.CreateShapeElement method:
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?