Always pay attention to the blog park, but I always do not write something. Slowly found that their ability to see also did not improve, the ability to do more and more dishes.
It's time to move on.
The first time I wrote a blog post, I began to record a writing in my work, hoping to look back again, to help myself, and to help people who saw them.
Here we go!
Inkscape common command line, copy and paste it over.
-?,--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
How to call in C #:
Path2 to save the SNG picture address
String path2 = Svgfile + ". png";
The following sentence is the command line that calls Inkscape
-F Data Source (I am here a file that ends in SVG)-E to export file path plus format-D resolution
If you use other parameters can refer to the above command line export height, length, background color can be set.
String Inkscapeargs = "-F" + Svgfile + ". svg" + "-e" + path2 + "-D 128";
Invoking the EXE application
System.Diagnostics.Process inkscape = System.Diagnostics.Process.Start (new System.Diagnostics.ProcessStartInfo ("D : \\inkscape\\inkscape.exe ", Inkscapeargs));
Inkscape. WaitForExit ();
There are problems, please point out, common progress.
To draw a PNG image from the C # command line by calling Inkscape