public class PointsPattern extends UncolouredTilingPattern
<p>Realizes uncoloured pattern represented by points followed one by one in chess order.</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);
PointsPattern pattern = new PointsPattern(10, 0.1f);
Color fillColor = new Color();
fillColor.PatternColorSpace = pattern;
rect.GraphInfo.FillColor = fillColor;
rect.GraphInfo.IsFilled = true;
pdf.Save(....);
</xmp>
| Constructor and Description |
|---|
PointsPattern()
Initializes a new instance of the
T:Aspose.Pdf.PointsPattern |
PointsPattern(float spacing)
Initializes a new instance of the
T:Aspose.Pdf.PointsPattern with spacing value |
PointsPattern(float spacing,
float radius)
Initializes a new instance of the
T:Aspose.Pdf.PointsPattern with spacing value and a radius of point. |
| Modifier and Type | Method and Description |
|---|---|
float |
getRadius()
Returns a radius of point.
|
float |
getSpacing()
Returns a distance between points.
|
completeClone, deepClone, getColor, setColorgetHeight, getPaintType, getTile, getTilingType, getWidth, getxStep, getyStep, setHeight, setPaintType, setTile, setTilingType, setWidth, setxStep, setyStepgetPatternIndex, getPatternType, getRotationAngle, getSkewX, getSkewY, getxPos, getxScale, getyPos, getyScale, setPatternIndex, setPatternType, setRotationAngle, setSkewX, setSkewY, setxPos, setxScale, setyPos, setyScalepublic PointsPattern()
Initializes a new instance of the T:Aspose.Pdf.PointsPattern
public PointsPattern(float spacing)
Initializes a new instance of the T:Aspose.Pdf.PointsPattern with spacing value
public PointsPattern(float spacing,
float radius)
Initializes a new instance of the T:Aspose.Pdf.PointsPattern with spacing value and a radius of point.
spacing - radius - - radius of point. Range 0 - spacing/2. If radius is greater than spacing/2 it will be spacing/2.Copyright © 2016 Aspose. All Rights Reserved.