Table of Contents

Class TilingPatternColor

Namespace
UglyToad.PdfPig.Graphics.Colors
Assembly
UglyToad.PdfPig.dll

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 TransformationMatrix
extGState DictionaryToken
patternStream StreamToken
paintType PatternPaintType
tilingType PatternTilingType
bbox PdfRectangle
xStep double
yStep double
resources DictionaryToken
data 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

PdfRectangle

Data

Content containing the painting operators needed to paint one instance of the cell.

public IReadOnlyList<byte> Data { get; }

Property Value

IReadOnlyList<byte>

PaintType

A code that determines how the colour of the pattern cell shall be specified.

public PatternPaintType PaintType { get; }

Property Value

PatternPaintType

PatternStream

Content stream containing the painting operators needed to paint one instance of the cell.

public StreamToken PatternStream { get; }

Property Value

StreamToken

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

DictionaryToken

TilingType

A code that controls adjustments to the spacing of tiles relative to the device pixel grid:.

public PatternTilingType TilingType { get; }

Property Value

PatternTilingType

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

double

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

double

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(TilingPatternColor)

public bool Equals(TilingPatternColor other)

Parameters

other TilingPatternColor

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TilingPatternColor, TilingPatternColor)

Equals.

public static bool operator ==(TilingPatternColor color1, TilingPatternColor color2)

Parameters

color1 TilingPatternColor
color2 TilingPatternColor

Returns

bool

operator !=(TilingPatternColor, TilingPatternColor)

Not Equals.

public static bool operator !=(TilingPatternColor color1, TilingPatternColor color2)

Parameters

color1 TilingPatternColor
color2 TilingPatternColor

Returns

bool