Class TilingPatternColor
A tiling pattern consists of a small graphical figure called a pattern cell. Painting with the pattern replicates the cell at fixed horizontal and vertical intervals to fill an area. The effect is as if the figure were painted on the surface of a clear glass tile, identical copies of which were then laid down in an array covering the area and trimmed to its boundaries.
public sealed class TilingPatternColor : PatternColor, IColor, IEquatable<TilingPatternColor>
- Inheritance
-
TilingPatternColor
- Implements
- Inherited Members
Constructors
TilingPatternColor(TransformationMatrix, DictionaryToken, StreamToken, PatternPaintType, PatternTilingType, PdfRectangle, double, double, DictionaryToken, IReadOnlyList<byte>)
Create a new TilingPatternColor.
public TilingPatternColor(TransformationMatrix matrix, DictionaryToken extGState, StreamToken patternStream, PatternPaintType paintType, PatternTilingType tilingType, PdfRectangle bbox, double xStep, double yStep, DictionaryToken resources, IReadOnlyList<byte> data)
Parameters
matrix
TransformationMatrixextGState
DictionaryTokenpatternStream
StreamTokenpaintType
PatternPaintTypetilingType
PatternTilingTypebbox
PdfRectanglexStep
doubleyStep
doubleresources
DictionaryTokendata
IReadOnlyList<byte>
Properties
BBox
The pattern cell's bounding box. These boundaries shall be used to clip the pattern cell.
public PdfRectangle BBox { get; }
Property Value
Data
Content containing the painting operators needed to paint one instance of the cell.
public IReadOnlyList<byte> Data { get; }
Property Value
PaintType
A code that determines how the colour of the pattern cell shall be specified.
public PatternPaintType PaintType { get; }
Property Value
PatternStream
Content stream containing the painting operators needed to paint one instance of the cell.
public StreamToken PatternStream { get; }
Property Value
Resources
A resource dictionary that shall contain all of the named resources required by the pattern's content stream.
public DictionaryToken Resources { get; }
Property Value
TilingType
A code that controls adjustments to the spacing of tiles relative to the device pixel grid:.
public PatternTilingType TilingType { get; }
Property Value
XStep
The desired horizontal spacing between pattern cells, measured in the pattern coordinate system.
XStep and YStep may differ from the dimensions of the pattern cell implied by the BBox entry. This allows tiling with irregularly shaped figures. XStep and YStep may be either positive or negative but shall not be zero.
public double XStep { get; }
Property Value
YStep
The desired vertical spacing between pattern cells, measured in the pattern coordinate system.
XStep and YStep may differ from the dimensions of the pattern cell implied by the BBox entry. This allows tiling with irregularly shaped figures. XStep and YStep may be either positive or negative but shall not be zero.
public double YStep { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
Equals(TilingPatternColor)
public bool Equals(TilingPatternColor other)
Parameters
other
TilingPatternColor
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TilingPatternColor, TilingPatternColor)
Equals.
public static bool operator ==(TilingPatternColor color1, TilingPatternColor color2)
Parameters
color1
TilingPatternColorcolor2
TilingPatternColor
Returns
operator !=(TilingPatternColor, TilingPatternColor)
Not Equals.
public static bool operator !=(TilingPatternColor color1, TilingPatternColor color2)
Parameters
color1
TilingPatternColorcolor2
TilingPatternColor