public class CrossHatchPattern extends UncolouredTilingPattern
<p>Realizes uncoloured cross-hatch pattern (lines intersected under a right angle).</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.Shapes.Add(rect);
CrossHatchPattern pattern = new CrossHatchPattern(10, 45);
Color fillColor = new Color();
fillColor.PatternColorSpace = pattern;
rect.GraphInfo.FillColor = fillColor;
rect.GraphInfo.IsFilled = true;
pdf.save(....);
</xmp>
Constructor and Description |
---|
CrossHatchPattern()
Initializes a new instance of the
T:Aspose.Pdf.CrossHatchPattern |
CrossHatchPattern(float spacing_0)
Initializes a new instance of the
T:Aspose.Pdf.CrossHatchPattern with value of spacing between lines. |
CrossHatchPattern(float spacing_0,
float angle)
Initializes a new instance of the
T:Aspose.Pdf.CrossHatchPattern with value of spacing between lines and a rotation angle of lines. |
CrossHatchPattern(float spacing_0,
float angle,
float lineWidth_1)
Initializes a new instance of the
T:Aspose.Pdf.CrossHatchPattern with value of spacing between lines, line width and a rotation angle of lines. |
Modifier and Type | Method and Description |
---|---|
float |
getLineWidth()
Returns a width of the lines.
|
float |
getSpacing()
Returns a distance between lines.
|
completeClone, deepClone, getColor, setColor
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 CrossHatchPattern()
Initializes a new instance of the T:Aspose.Pdf.CrossHatchPattern
public CrossHatchPattern(float spacing_0)
Initializes a new instance of the T:Aspose.Pdf.CrossHatchPattern
with value of spacing between lines.
public CrossHatchPattern(float spacing_0, float angle)
Initializes a new instance of the T:Aspose.Pdf.CrossHatchPattern
with value of spacing between lines and a rotation angle of lines.
public CrossHatchPattern(float spacing_0, float angle, float lineWidth_1)
Initializes a new instance of the T:Aspose.Pdf.CrossHatchPattern
with value of spacing between lines, line width and a rotation angle of lines.
Copyright © 2016 Aspose. All Rights Reserved.