SceneShape Class
An element that is filled or stroked.
public abstract class SceneShape : SceneElement- Inheritance
SceneElementSceneShape
Properties
| Name | Description |
|---|---|
| Fill | Gets or sets how the interior is painted, or null to leave it empty. |
| LineCap | Gets or sets the shape of the ends of open outlines. |
| LineJoin | Gets or sets the shape of the corners of outlines. |
| MiterLimit | Gets or sets the limit of SceneLineJoin.Miter joins: the largest allowed ratio between the length of the miter and the width of the outline. A sharper corner is beveled. The default is 4, as in SVG; a value less than 1 or not finite is 4. |
| NonScalingStroke | Gets or sets a value that indicates whether the stroke keeps its width whatever the transforms of the shape and of its groups, as the SVG vector-effect="non-scaling-stroke". The default is false. |
| PaintOrder | Gets or sets the order in which the fill, the stroke and the markers are painted, as the SVG paint-order property. The default is the fill, then the stroke, then the markers. |
| Stroke | Gets or sets how the outline is painted, or null for no outline. |
| StrokeDashArray | Gets or sets the lengths of the dashes and gaps of the outline, or null for a solid outline. |
| StrokeDashOffset | Gets or sets the distance into SceneShape.StrokeDashArray at which the dashes of the outline start. A negative distance starts before the pattern, and a value that is not finite is 0. |
| StrokeWidth | Gets or sets the width of the outline. |
Fill
SceneShape.csGets or sets how the interior is painted, or null to leave it empty.
public ScenePaint? Fill { get; set; }Property value
LineCap
SceneShape.csGets or sets the shape of the ends of open outlines.
public SceneLineCap LineCap { get; set; }Property value
LineJoin
SceneShape.csGets or sets the shape of the corners of outlines.
public SceneLineJoin LineJoin { get; set; }Property value
MiterLimit
SceneShape.csGets or sets the limit of SceneLineJoin.Miter joins: the largest allowed ratio between the length of the miter and the width of the outline. A sharper corner is beveled. The default is 4, as in SVG; a value less than 1 or not finite is 4.
public double MiterLimit { get; set; }Property value
NonScalingStroke
SceneShape.csGets or sets a value that indicates whether the stroke keeps its width whatever the transforms of the shape and of its groups, as the SVG vector-effect="non-scaling-stroke". The default is false.
public bool NonScalingStroke { get; set; }Property value
Remarks
The width and the dashes of the stroke are then in the coordinates of the scene: a stroke 1 pixel wide stays 1 pixel wide in a group scaled 10 times. The image and PDF renderers scale it with the scene, as the rest of the drawing. The bounds of the shape (SceneElement.GetBounds) count its width in the coordinates of the shape.
PaintOrder
SceneShape.csGets or sets the order in which the fill, the stroke and the markers are painted, as the SVG paint-order property. The default is the fill, then the stroke, then the markers.
public ScenePaintOrder PaintOrder { get; set; }Property value
Stroke
SceneShape.csGets or sets how the outline is painted, or null for no outline.
public ScenePaint? Stroke { get; set; }Property value
StrokeDashArray
SceneShape.csGets or sets the lengths of the dashes and gaps of the outline, or null for a solid outline.
public IReadOnlyList<double>? StrokeDashArray { get; set; }Property value
StrokeDashOffset
SceneShape.csGets or sets the distance into SceneShape.StrokeDashArray at which the dashes of the outline start. A negative distance starts before the pattern, and a value that is not finite is 0.
public double StrokeDashOffset { get; set; }