12 private PointF[] _points = [];
27 SceneLayer? sceneLayer,
View? view, Rectangle bounds, PointF[] points,
string? nickname)
28 : base(color, host, mode, sceneLayer, view, bounds, nickname)
43 protected override void DrawGeometry(SKCanvas canvas, SKRect bounds, SKPaint paint)
45 PointF[] points = _points;
47 if (points is not
null)
override void DrawGeometry(SKCanvas canvas, SKRect bounds, SKPaint paint)
DirectPolyline(Color color, RenderSurfaceHostBase host, View view, Rectangle screenBounds, IEnumerable< PointF > points, string? nickname=null)
Creates a view-space polyline within the supplied bounds.
DirectPolyline SetPoints(IEnumerable< PointF > points)
Replaces the point sequence with a defensive copy of normalized local points.
DirectPolyline(Color color, RenderSurfaceHostBase host, SceneLayer sceneLayer, Rectangle worldBounds, IEnumerable< PointF > points, string? nickname=null)
Creates a scene-layer polyline within the supplied bounds.
static PointF[] CopyPoints(IEnumerable< PointF > points, int minimumCount)
Copies and validates a sequence of normalized local points.
static void DrawPointSequence(SKCanvas canvas, SKRect bounds, SKPaint paint, PointF[] points, bool closed)
Draws a point sequence as an open or closed path.
DirectShapeBase(Color color, RenderSurfaceHostBase host, DirectDrawingMode mode, SceneLayer? sceneLayer, View? view, Rectangle bounds, string? nickname)
Represents a base class for hosting a render surface, providing functionality for managing rendering ...
DirectDrawingMode
Specifies where direct drawing operations are applied within the rendering pipeline.
@ View
Performs direct drawing at the view level using screen-space coordinates.
@ SceneLayer
Performs direct drawing within a scene layer using world-space coordinates.