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 : ScenePaintRemarks
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
ScenePaintPatternPaint
Constructors
| Name | Description |
|---|---|
| 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.csA 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
tileSceneBounds- 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.Contentdraws 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
| Name | Description |
|---|---|
| Content | Gets the drawing of the tile, in the coordinates of the pattern. |
| Tile | Gets the rectangle that repeats, in the coordinates of the pattern. |
| Transform | 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. |
Content
PatternPaint.csGets the drawing of the tile, in the coordinates of the pattern.
public SceneGroup Content { get; }Property value
Tile
PatternPaint.csGets the rectangle that repeats, in the coordinates of the pattern.
public SceneBounds Tile { get; }Property value
Transform
PatternPaint.csGets 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; }