public class UncolouredTilingPattern extends TilingPattern
<p>Realizes uncoloured tiling pattern that is tiling pattern contains shapes or text or image with one common color or no color at all.
In the later case a color of the tile will be inherited from current color state of document.</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 = null;
line.GraphInfo.LineWidth = 0.1f;
tile1.Shapes.Add(line);
line = new Line(new float [] {xStep, yStep/2, 0, yStep/2});
line.GraphInfo.Color = null;
line.GraphInfo.LineWidth = 0.1f;
tile1.Shapes.Add = line;
pdf.save(....);
</xmp>
Constructor and Description |
---|
UncolouredTilingPattern()
Initializes a new instance of the
T:Aspose.Pdf.UncolouredTilingPattern |
UncolouredTilingPattern(Color color_0)
Initializes a new instance of the
T:Aspose.Pdf.UncolouredTilingPattern with specified T:Aspose.Pdf.Color object. |
Modifier and Type | Method and Description |
---|---|
Object |
completeClone()
Copies all fields.
|
Object |
deepClone()
Copies all fields.
|
Color |
getColor()
Returns a color of tile.
|
void |
setColor(Color color_0)
Sets a color of tile.
|
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 UncolouredTilingPattern()
Initializes a new instance of the T:Aspose.Pdf.UncolouredTilingPattern
public UncolouredTilingPattern(Color color_0)
Initializes a new instance of the T:Aspose.Pdf.UncolouredTilingPattern
with specified T:Aspose.Pdf.Color
object.
public Color getColor()
Returns a color of tile.
public void setColor(Color color_0)
Sets a color of tile.
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.