public class ColouredTilingPattern extends TilingPattern
<p>Realizes coloured tiling pattern that is tiling pattern contains multicoloured shapes or text or image.</p>
<p>Typical usages are the following:</p>
<xmp>
[C#]
Pdf pdf = new Pdf();
Section sec = pdf.Sections.Add();
Graph graph = new Graph(sec, 100, 700);
sec.Paragraphs.Add(graph);
Rectangle rect = new Rectangle(0, 600, 200, 100);
graph.getShapes().add(rect);
int xStep = 8;
int yStep = 8;
Graph tile1 = new Graph(xStep, yStep);
tile1.PosX = 0;
tile1.PosY = 0;
Line line = new Line(new float [] {xStep/2, yStep, xStep/2, 0});
line.GraphInfo.Color = new Color((short)255, (short)0, (short)0);
line.GraphInfo.LineWidth = 0.1f;
tile1.Shapes.Add(line);
line = new Line(new float [] {xStep, yStep/2, 0, yStep/2});
line.GraphInfo.Color = new Color(short)0, (short)122, (short)123);
line.GraphInfo.LineWidth = 0.1f;
tile1.Shapes.Add(line);
pdf.save(....);
</xmp>
Constructor and Description |
---|
ColouredTilingPattern()
Initializes a new instance of the
T:Aspose.Pdf.ColouredTilingPattern |
Modifier and Type | Method and Description |
---|---|
Object |
completeClone()
Copies all fields.
|
Object |
deepClone()
Copies all fields.
|
getHeight, getPaintType, getTile, getTilingType, getWidth, getxStep, getyStep, setHeight, setPaintType, setTile, setTilingType, setWidth, setxStep, setyStep
getPatternIndex, getPatternType, getRotationAngle, getSkewX, getSkewY, getxPos, getxScale, getyPos, getyScale, setPatternIndex, setPatternType, setRotationAngle, setSkewX, setSkewY, setxPos, setxScale, setyPos, setyScale
public ColouredTilingPattern()
Initializes a new instance of the T:Aspose.Pdf.ColouredTilingPattern
public Object completeClone()
Copies all fields. Tile is copied by value.
public Object deepClone()
Copies all fields. Tile is copied by reference. Shell be used for patterns that use one tile but different colors or matrix or steps or width, height.
deepClone
in class PatternColorSpace
Copyright © 2016 Aspose. All Rights Reserved.