Table of Contents

Property EnsureViewboxSize

Namespace
SharpVectors.Converters
Assembly
SharpVectors.Converters.Wpf.dll

EnsureViewboxSize

Gets or sets a value to indicate preserving the original viewbox size when saving images.

public bool EnsureViewboxSize { get; set; }

Property Value

bool

For image outputs, this will force the original size to be saved.

The default value is false. However, the ImageSvgConverter converted sets this to true by default.

Remarks

Setting this to true will cause the rendering process to draw a transparent box around the output, if a viewbox is defined. This will ensure that the original image size is saved.