You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the GetFigures method to the GraphicsPath class, to extract figures (contours) from a path.
Added an optional tag parameter to a number of graphics actions that were missing it (crop, transforms, filters, clipping paths).
Individual text components now have their own tags (e.g., underlines, individual glyphs when drawing text on a path, or individual text spans when drawing an IEnumerable<FormattedText>.
Added the GetColourAt method to the GradientStops class, to get the colour at a certain position in a gradient.
Added a new Crop method to the Graphics class, which removes graphics actions that fall completely outside of the crop region. The Crop method of the Page class now has an optional parameter that determines whether this kind of "hard" cropping should be performed or not.
VectSharp.Raster now has a new method SaveAsRawBytes to render a Page to raw pixel data.
The GraphicsPath.Linearise method now uses multiple threads to speed up execution.
The Rectangle struct now has a Centre property that returns the centre of the rectangle.
Added the GetTags method to the Graphics class to get all the tags that have been defined in the Graphics.
Animations! VectSharp can now be used to create animated GIFs, SVGs and PNGs. See the documentation website for more details. The demo project also has some more example code.
Bugfixes
In PDF documents with semi-transparent gradients, the gradient alpha mask now does not persist after the gradient has been applied.
Boundaries are now computed correctly for paths containing arcs with negative angles.
The correct scale is now applied when rasterising filters in VectSharp.Raster.
Fixed an issue in the SVG parser when parsing paths with symmetrical Bezier control points.