SvgSaveOptions.MaxImageResolution

SvgSaveOptions MaxImageResolution property. Gets or sets a value in pixels per inch that limits resolution of exported raster images. Default value is zero.

SvgSaveOptions.MaxImageResolution property

Gets or sets a value in pixels per inch that limits resolution of exported raster images. Default value is zero.

public int MaxImageResolution { get; set; }

Remarks

If the value of this property is non-zero, it limits resolution of exported raster images. That is, higher-resolution images are resampled down to the limit and lower-resolution images are exported as is.

If the value of this property is zero, all raster images are exported without resampling.

Examples

Shows how to configure raster images export to SVG.

SvgSaveOptions svgSaveOptions = new SvgSaveOptions();
svgSaveOptions.ExportEmbeddedImages = false;
svgSaveOptions.MaxImageResolution = 200;
svgSaveOptions.ResourcesFolder = ArtifactsDir +"svgresources";
svgSaveOptions.ResourcesFolderAlias = "svgresources";

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "SaveOptions.ExportEmbeddedImages.svg", svgSaveOptions)
    .Execute();

See Also