Table of Contents

Class OdfSvgPathDataParser

Namespace
OdfKit.Drawing
Assembly
OdfKit.dll

Provides fast UTF-8 span-based parsing of SVG path data. 提供 SVG path data 的 UTF-8 Span 快速解析工具。

public static class OdfSvgPathDataParser
Inheritance
OdfSvgPathDataParser
Inherited Members

Methods

TryGetBounds(ReadOnlySpan<byte>, out OdfSvgPathBounds)

Attempts to parse the coordinate bounds from SVG path data. 嘗試從 SVG path data 解析座標邊界。

public static bool TryGetBounds(ReadOnlySpan<byte> utf8PathData, out OdfSvgPathBounds bounds)

Parameters

utf8PathData ReadOnlySpan<byte>

The UTF-8 encoded SVG path data. / UTF-8 編碼的 SVG path data。

bounds OdfSvgPathBounds

The parsed coordinate bounds. / 解析出的座標邊界。

Returns

bool

true if at least one coordinate was parsed successfully; otherwise false. / 若成功解析到至少一個座標則為 true,否則為 false