@@ -11,7 +11,7 @@ namespace SixLabors.ImageSharp.Drawing.Processing.Backends;
1111public enum CompositionCommandKind : byte
1212{
1313 /// <summary>
14- /// A fill or stroked -path command.
14+ /// A fill-path command.
1515 /// </summary>
1616 FillLayer = 0 ,
1717
@@ -27,14 +27,13 @@ public enum CompositionCommandKind : byte
2727}
2828
2929/// <summary>
30- /// One normalized path- or layer-based composition command queued by <see cref="DrawingCanvasBatcher{TPixel}"/>.
30+ /// One normalized fill-path or layer-based composition command queued by <see cref="DrawingCanvasBatcher{TPixel}"/>.
3131/// </summary>
3232/// <remarks>
33- /// This type carries path-backed draw commands plus inline layer boundaries.
33+ /// This type carries fill-path commands plus inline layer boundaries.
3434/// </remarks>
3535public readonly struct CompositionCommand
3636{
37- private readonly Pen ? pen ;
3837 private readonly IPath ? sourcePath ;
3938 private readonly Brush ? brush ;
4039 private readonly Matrix4x4 transform ;
@@ -50,7 +49,6 @@ private CompositionCommand(
5049 Rectangle targetBounds ,
5150 Rectangle layerBounds ,
5251 Point destinationOffset ,
53- Pen ? pen ,
5452 Matrix4x4 transform ,
5553 IReadOnlyList < IPath > ? clipPaths ,
5654 ShapeOptions ? shapeOptions )
@@ -63,7 +61,6 @@ private CompositionCommand(
6361 this . TargetBounds = targetBounds ;
6462 this . LayerBounds = layerBounds ;
6563 this . DestinationOffset = destinationOffset ;
66- this . pen = pen ;
6764 this . transform = transform ;
6865 this . clipPaths = clipPaths ;
6966 this . shapeOptions = shapeOptions ;
@@ -74,11 +71,6 @@ private CompositionCommand(
7471 /// </summary>
7572 public CompositionCommandKind Kind { get ; }
7673
77- /// <summary>
78- /// Gets the stroke metadata for stroke commands.
79- /// </summary>
80- public readonly Pen ? Pen => this . pen ;
81-
8274 /// <summary>
8375 /// Gets the absolute bounds of the logical target for this command.
8476 /// </summary>
@@ -134,7 +126,7 @@ private CompositionCommand(
134126 public ShapeOptions ShapeOptions => this . shapeOptions ?? throw new InvalidOperationException ( "Layer commands do not carry shape options." ) ;
135127
136128 /// <summary>
137- /// Creates a path-backed composition command.
129+ /// Creates a fill-path composition command.
138130 /// </summary>
139131 /// <param name="path">Path in target-local coordinates.</param>
140132 /// <param name="brush">Brush used during composition.</param>
@@ -144,7 +136,6 @@ private CompositionCommand(
144136 /// <param name="transform">Transform matrix supplied with the command.</param>
145137 /// <param name="targetBounds">The absolute bounds of the logical target for this command.</param>
146138 /// <param name="destinationOffset">Absolute destination offset where coverage is composited.</param>
147- /// <param name="pen">Optional pen for stroked-path commands.</param>
148139 /// <param name="clipPaths">Optional clip paths supplied with the command.</param>
149140 /// <returns>The composition command.</returns>
150141 public static CompositionCommand Create (
@@ -156,7 +147,6 @@ public static CompositionCommand Create(
156147 Matrix4x4 transform ,
157148 Rectangle targetBounds ,
158149 Point destinationOffset = default ,
159- Pen ? pen = null ,
160150 IReadOnlyList < IPath > ? clipPaths = null )
161151 => new (
162152 CompositionCommandKind . FillLayer ,
@@ -167,7 +157,6 @@ public static CompositionCommand Create(
167157 targetBounds ,
168158 default ,
169159 destinationOffset ,
170- pen ,
171160 transform ,
172161 clipPaths ,
173162 shapeOptions ) ;
@@ -188,7 +177,6 @@ public static CompositionCommand CreateBeginLayer(Rectangle layerBounds, Graphic
188177 layerBounds ,
189178 layerBounds ,
190179 default ,
191- null ,
192180 Matrix4x4 . Identity ,
193181 null ,
194182 null ) ;
@@ -209,7 +197,6 @@ public static CompositionCommand CreateEndLayer(Rectangle layerBounds, GraphicsO
209197 layerBounds ,
210198 layerBounds ,
211199 default ,
212- null ,
213200 Matrix4x4 . Identity ,
214201 null ,
215202 null ) ;
0 commit comments