我正在尝试将图像转换为XAML代码。为此,我使用了"Potrace“和"SharpVectors”。Potrace会将图像转换为标量矢量图形,而SharpVectors会将SVG文件作为输入,并给出XAML作为输出。转换正在进行,但转换后的XAML设计并不是那么清晰。图像的清晰度降低了。对提高图像清晰度有什么想法吗?
Process p = new Process();
p.StartInfo.FileName = "Potrace.exe";
p.StartInfo.Arguments = "-s " +"test.bmp"+ " -o " + "test.svg" ;
p.Start();
xamlcreator.Convert("test.svg");xamlcreator是一个从SharpVectors dll中使用的函数。
发布于 2014-01-13 15:58:41
您没有使用缩放和放置选项:
-P, --pagesize format - page size (default is letter)
-W, --width dim - width of output image
-H, --height dim - height of output image
-r, --resolution n[xn] - resolution (in dpi) (dimension-based backends)
-x, --scale n[xn] - scaling factor (pixel-based backends)
-S, --stretch n - yresolution/xresolution
-A, --rotate angle - rotate counterclockwise by angle
-M, --margin dim - margin
-L, --leftmargin dim - left margin
-R, --rightmargin dim - right margin
-T, --topmargin dim - top margin
-B, --bottommargin dim - bottom margin请参阅Potrace
https://stackoverflow.com/questions/21085826
复制相似问题