Class SvgEncoderParameters
Encoder parameters controlling SVG output.
Inherited Members
Namespace: DRIT.Drawing.Vector.Svg
Assembly: DRIT.Drawing.dll
Syntax
public sealed class SvgEncoderParameters
Constructors
SvgEncoderParameters()
Initializes a empty SvgEncoderParameters instance.
Declaration
public SvgEncoderParameters()
Properties
CoordinatePrecision
Gets or sets the number of decimal places for coordinate output (default: 4).
Declaration
public int CoordinatePrecision { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Default
Gets the default encoder parameters.
Declaration
public static SvgEncoderParameters Default { get; }
Property Value
| Type | Description |
|---|---|
| SvgEncoderParameters |
EmbedImages
Gets or sets whether to embed images as inline base64 data URIs (default: true). If false, the current encoder rejects the request because it has no external-resource directory or URI-base setting.
Declaration
public bool EmbedImages { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Indent
Gets or sets whether to pretty-print with indentation (default: true).
Declaration
public bool Indent { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TextMode
Gets or sets the text emission mode (default: Path).
Declaration
public SvgTextMode TextMode { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgTextMode |