SixLabors / ImageSharp.Drawing

:pen: Extensions to ImageSharp containing a cross-platform 2D polygon manipulation API and drawing operations.
https://sixlabors.com/products/imagesharp-drawing/
Other
285 stars 39 forks source link

Expose JointStyle and EndCapStyle on IPen #158

Closed antonfirsov closed 2 years ago

antonfirsov commented 3 years ago

Modify DrawPathProcessor: https://github.com/SixLabors/ImageSharp.Drawing/blob/b58a245c75d8b546750fbabd9d289c4c7ac513a4/src/ImageSharp.Drawing/Processing/Processors/Drawing/DrawPathProcessor.cs#L52

And probably DrawTextProcessor: https://github.com/SixLabors/ImageSharp.Drawing/blob/b58a245c75d8b546750fbabd9d289c4c7ac513a4/src/ImageSharp.Drawing/Processing/Processors/Text/DrawTextProcessor%7BTPixel%7D.cs#L342-L354

to use the new properties.

This will simplify life for use cases like #155.

Adding to 1.0 with lowest priority for now, @JimBobSquarePants feel free to kick it out of scope if it becomes blocking.

antonfirsov commented 2 years ago

@jtjackson thanks for your help with this!