I tried to convert .svg imge into .png using the example
and found that the final .png is very different from the original .svg (not-existed lines were added).
I also tried to change values CompressionLevel, ColorType, FilterType of PngOptions but this did not help.
Here is my code:
’ Load an existing SVG image as Image
Dim objImage As Aspose.Imaging.Image = Aspose.Imaging.Image.Load(SourcePath)
' Convert the Image to SvgImage
Using Image As Aspose.Imaging.FileFormats.Svg.SvgImage = DirectCast(objImage, Aspose.Imaging.FileFormats.Svg.SvgImage)
Dim Options As New Aspose.Imaging.ImageOptions.PngOptions
'Options.CompressionLevel = 0
'Options.ColorType = Aspose.Imaging.FileFormats.Png.PngColorType.Truecolor
'Options.FilterType = Aspose.Imaging.FileFormats.Png.PngFilterType.Adaptive
Here is demo application with test .svg image: