PatternPaint Class

A pattern: a tile of drawing repeated side by side in both directions, as an SVG pattern whose units are the coordinates of the shape it paints (patternUnits="userSpaceOnUse").

public sealed class PatternPaint : ScenePaint

Remarks

The content of a pattern that paints with the pattern itself, directly or not, is not drawn. The hyperlinks of the content are not links.

Inheritance
ScenePaint PatternPaint

Constructors

NameDescription
PatternPaint(SceneBounds)A pattern: a tile of drawing repeated side by side in both directions, as an SVG pattern whose units are the coordinates of the shape it paints (patternUnits="userSpaceOnUse").

PatternPaint(SceneBounds)

PatternPaint.cs

A pattern: a tile of drawing repeated side by side in both directions, as an SVG pattern whose units are the coordinates of the shape it paints (patternUnits="userSpaceOnUse").

public PatternPaint(SceneBounds tile)

Parameters

tile SceneBounds
The rectangle that repeats, in the coordinates of the pattern: the tile at (0, 0) of 10 by 10 is drawn again at (10, 0), (0, 10) and so on. What PatternPaint.Content draws outside of it is cut. A tile without width or height paints nothing.

Remarks

The content of a pattern that paints with the pattern itself, directly or not, is not drawn. The hyperlinks of the content are not links.

Properties

NameDescription
ContentGets the drawing of the tile, in the coordinates of the pattern.
TileGets the rectangle that repeats, in the coordinates of the pattern.
TransformGets the transform from the coordinates of the pattern to the coordinates of the shape it paints, as the patternTransform of SVG, or null for none: it rotates, skews or scales the pattern.

Gets the drawing of the tile, in the coordinates of the pattern.

public SceneGroup Content { get; }

Property value

SceneGroup

Gets the rectangle that repeats, in the coordinates of the pattern.

public SceneBounds Tile { get; }

Property value

SceneBounds

Gets the transform from the coordinates of the pattern to the coordinates of the shape it paints, as the patternTransform of SVG, or null for none: it rotates, skews or scales the pattern.

public SceneTransform? Transform { get; init; }

Property value

SceneTransform?