public class ComplexShape extends ClosedShape
<p>ComplexShape is a Shape that consists of several closed Shapes (contours).
It can contain Circle, Ellipse, Rectangle and PathArea.
Other shapes are ignored.</p>
<p>Typical usages are the following:</p>
<xmp>
[C#]
Pdf pdf1 = new Pdf();
Section sec = pdf1.Sections.Add();
Color color = new Aspose.Pdf.Generator.Color("Red");
Graph graph = new Graph(100,400);
sec.Paragraphs.Add(graph);
ComplexShape complexShape = new ComplexShape(graph);
path.GraphInfo.FillColor = color;
path.GraphInfo.IsFilled = true;
path.GraphInfo.FillRule = "evenodd";
graph.Shapes.Add(complexShape);
PathArea path = new PathArea();
complexShape.Shapes.Add(path);
Line line = new Line(new float [] {200, 80, 200, 100});
path.Shapes.Add(line); Arc arc = new Arc(200, 50, 50, 90, 270);
path.Shapes.add(arc); float [] curPos = arc.getEndPosition(); line = new
Line(new float [] {curPos[0], curPos[1], 200, 20}); path.Shapes.Add(line);
arc = new Arc(200, 50, 30, 270, 90); path.Shapes.Add(arc); Circle circle =
new Circle(160, 50, 5); complexShape.Shapes.add(circle); pdf1.save(....);
</xmp>
Constructor and Description |
---|
ComplexShape()
Initializes a new instance of the
T:Aspose.Pdf.ComplexShape
class. |
ComplexShape(Graph graph)
Initializes a new instance of the
T:Aspose.Pdf.ComplexShape
class. |
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Collections.IList |
getShapes()
Returns or specifies a list of closed shapes.
|
void |
setShapes(com.aspose.ms.System.Collections.IList value) |
getBlendInfo, getClipShapes, getEndFillArea, getGraph, getGraphicState, getGraphInfo, getID, getOpacity, getStrokeOpacity, isBoundingBoxRelative, isBoundingBoxRelative, setBlendInfo, setClipShapes, setEndFillArea, setGraph, setGraphInfo, setID, setOpacity, setStrokeOpacity
public ComplexShape()
Initializes a new instance of the T:Aspose.Pdf.ComplexShape
class.
public ComplexShape(Graph graph)
Initializes a new instance of the T:Aspose.Pdf.ComplexShape
class.
graph
- object.
<p> <b>Remarks</b>: This constructor can inherit common property values from the specified {@code T:Aspose.Pdf.Graph} object. </p>
Copyright © 2016 Aspose. All Rights Reserved.