• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SvgEncoderParameters

Encoder parameters controlling SVG output.

Inheritance
object
SvgEncoderParameters
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX