public class CrossHatchPattern extends UncolouredTilingPattern
Realizes uncoloured cross-hatch pattern (lines intersected under a right angle).
Typical usages are the following:
[Java] Pdf pdf = new Pdf(); Section sec = pdf.getSections().add(); Graph graph = new Graph(sec, 100, 700); sec.getParagraphs().add(graph); Rectangle rect = new Rectangle(0, 600, 200, 100); graph.getShapes().add(rect); CrossHatchPattern pattern = new CrossHatchPattern(10, 45); Color fillColor = new Color(); fillColor.setPatternColorSpace ( pattern); rect.getGraphInfo().setFillColor ( fillColor); rect.getGraphInfo().setFilled ( true); pdf.save(....);}
Constructor and Description |
---|
CrossHatchPattern()
Initializes a new instance of the
T:Aspose.Pdf.CrossHatchPattern |
CrossHatchPattern(float spacing)
Initializes a new instance of the
T:Aspose.Pdf.CrossHatchPattern with value of spacing between lines. |
CrossHatchPattern(float spacing,
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,
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
getPatternType, getRotationAngle, getSkewX, getSkewY, getxPos, getxScale, getyPos, getyScale, setPatternType, setRotationAngle, setSkewX, setSkewY, setxPos, setxScale, setyPos, setyScale
public CrossHatchPattern()
Initializes a new instance of the T:Aspose.Pdf.CrossHatchPattern
public CrossHatchPattern(float spacing)
Initializes a new instance of the T:Aspose.Pdf.CrossHatchPattern
with value of spacing between lines.
public CrossHatchPattern(float spacing, 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, 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 © 2014 Aspose. All Rights Reserved.