一直關(guān)注博客園,但是自己總不去寫(xiě)點(diǎn)東西。慢慢的發(fā)現(xiàn)自己看的能力也沒(méi)提高,動(dòng)手能力越來(lái)越菜。是時(shí)候動(dòng)動(dòng)手了。首次寫(xiě)博文,開(kāi)始記錄工作中用到的一寫(xiě)東西,希望再次回過(guò)頭來(lái)看的時(shí)候,能對(duì)自己有些幫助,也對(duì)看到這些的人有些幫助。開(kāi)始了!Inkscape常用命令行,復(fù)制粘貼過(guò)來(lái)了?! ??, --help -V, --version
-f, --file=FILENAME
-e, --export-png=FILENAME -a, --export-area=x0:y0:x1:y1 -C, --export-area-page -D, --export-area-drawing --export-area-snap -i, --export-id=ID -j, --export-id-only -t, --export-use-hints -b, --export-background=COLOR -y, --export-background-opacity=VALUE -d, --export-dpi=DPI -w, --export-width=WIDTH -h, --export-height=HEIGHT
-P, --export-ps=FILENAME -E, --export-eps=FILENAME -A, --export-pdf=FILENAME --export-pdf-version=VERSION-STRING --export-latex
--export-ps-level {2,3}-T, --export-text-to-path --export-ignore-filters
-l, --export-plain-svg=FILENAME
-p, --PRint=PRINTER
-I, --query-id=ID -X, --query-x -Y, --query-y -W, --query-width -H, --query-height -S, --query-all
-x, --extension-directory
-g, --with-gui -z, --without-gui如何在C#中調(diào)用。。 //path2要保存的sng圖片地址 string path2 = svgFile + ".png"; //下面這句是調(diào)用inkscape的命令行 //-f數(shù)據(jù)源(我這里是一個(gè)以svg結(jié)尾的文件) -e要導(dǎo)出的文件路徑加格式 -d分辨率 //如果用到別的參數(shù)可以參考上面的命令行 導(dǎo)出高度,長(zhǎng)度,背景色都是可以設(shè)置的。string inkscapeArgs = "-f " + svgFile + ".svg" + " -e " + path2 + " -d 128"; //調(diào)用exe應(yīng)用程序System.Diagnostics.Process inkscape = System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo("D://inkscape//inkscape.exe ", inkscapeArgs));inkscape.WaitForExit();有問(wèn)題,請(qǐng)指出,共同進(jìn)步。新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注