Overview of WinGraphviz |
|||
| News | Introduction | WinGraphviz API | The DOT language | Samples | |||
|
|
Introduction:
Graphvizis a Project of AT&T Labs research.It provides a collection of tools for manipulating graph structures and generating graph layouts.
WinGraphviz is a free software base on Graphviz project .It can rander the dot-language to common Image-format. and It's a Windows COM Object,and you can use it in your Windows-application or ASP service without a Unix server.
Supported image format
| SVG | : Scalable Vector Graphics. | |
| Plain | : Simple, line-based ASCII format. | |
| PlainExt | : Simple, line-based ASCII format. | |
| Dot | : Attributed DOT. | |
| Canon | : Prettyprint input; no layout is done. | |
| PS | : PostScript (EPSF) . |
| GIF | : GIF89a. | |
| PNG | : Portable Network Graphics. | |
| SVGZ | : Compressed SVG. | |
| WBMP | : Wireless BitMap . | |
| JPEG | ||
| EMF | : Enhanced-Format Metafiles . |
| CMAP | : Client-side image map.. | |
| ISMAP | : Server-side image map. | |
| IMAP | : Apache map file for httpd servers. |
Supported COM interface
IStream
IPictureDisp
Supported CodePage
English
Cyrillic
Deutsch
Français
Italiano
Korean,Unified Hangeul Code(
)
Japanese,Shift-JIS (
)
Simplified Chinese (
)
Tradition Chinese (
)
Others didn't get the report yet,maybe yes or not.
Supported Algorithm
DOT : preprocessor for drawing directed graphs .
NEATO : preprocessor for drawing undirected graphs
TWOPI : draws graphs using a circular layout .
WinGraphviz API:
| DOT | Name | Description |
| ProgramID: | WinGraphviz.DOT | for directed Graph |
| Function List | ||
| ToSvg(String Source) as String | convert from DOT-language to SVG | |
| ToPlain(String Source) as String | convert from DOT-language to Simple,line-based ASCII format. | |
| ToPlainExt(String Source) as String | ||
| ToDot(String Source) as String | ||
| ToCanon(String Source) as String | convert from DOT-language to CANON for tcl/tk version | |
| ToPS(String Source) as String | convert from DOT-language to PostScript (EPSF) . | |
| ToCMAP(String Source) as String | convert from DOT-language to HTML client-side image map | |
| ToIMAP(String Source) as String | convert from DOT-language to apache map file for httpd servers. | |
| ToISMAP(String Source) as String | convert from DOT-language to HTML server-side image map | |
| ToTextGraph(String Source,Integer Type) as String | convert fomr -language to text-format output.(dot,ps,svg,plain,plain_ext,canon.........) | |
| Validate(String Source) as Boolean | check DOT-language | |
| ToGIF(String Source) as BinaryImage | convert from DOT-language to GIF. | |
| ToPNG(String Source) as BinaryImage | convert from DOT-language to PNG (Portable Network Graphics). | |
| convert from DOT-language to JPEG. | ||
| ToEMF(String Source) as BinaryImage | convert from DOT-language to : Enhanced-Format Metafiles. | |
| ToSVGZ(String Source) as BinaryImage | convert from DOT-language to compressed SVG. | |
| ToWBMP(String Source) as BinaryImage | convert from DOT-language to Wireless BitMap (WBMP) format. | |
| ToJPEG(String Source) as BinaryImage | convert from DOT-language to JPEG format. | |
| ToBinaryGraph(String Source,Integer Type) as BinaryImage | convert fomr -language to text-format output.(png,gif,svgz) | |
| Property List | ||
| Codepage as Integer, | Return and set the codepage . | |
| TWOPI | Name | Description |
| ProgramID: | WinGraphviz.TWOPI | for circle |
| Function List | ||
| ToSvg(String Source) as String | convert from DOT-language to SVG | |
| ToPlain(String Source) as String | convert from DOT-language to Simple,line-based ASCII format. | |
| ToPlainExt(String Source) as String | ||
| ToDot(String Source) as String | ||
| ToCanon(String Source) as String | convert from DOT-language to CANON for tcl/tk version | |
| ToPS(String Source) as String | convert from DOT-language to PostScript (EPSF) . | |
| ToCMAP(String Source) as String | convert from DOT-language to HTML client-side image map | |
| ToIMAP(String Source) as String | convert from DOT-language to apache map file for httpd servers. | |
| ToISMAP(String Source) as String | convert from DOT-language to HTML server-side image map | |
| ToTextGraph(String Source,Integer Type) as String | convert fomr -language to text-format output.(dot,ps,svg,plain,plain_ext,canon.........) | |
| Validate(String Source) as Boolean | check DOT-language | |
| ToGIF(String Source) as BinaryImage | convert from DOT-language to GIF. | |
| ToPNG(String Source) as BinaryImage | convert from DOT-language to PNG (Portable Network Graphics). | |
| ToJPEG(String Source) as BinaryImage | convert from DOT-language to JPEG. | |
| ToEMF(String Source) as BinaryImage | convert from DOT-language to Enhanced-Format Metafiles. | |
| ToSVGZ(String Source) as BinaryImage | convert from DOT-language to compressed SVG. | |
| ToWBMP(String Source) as BinaryImage | convert from DOT-language to Wireless BitMap (WBMP) format. | |
| ToJPEG(String Source) as BinaryImage | convert from DOT-language to JPEG format. | |
| ToBinaryGraph(String Source,Integer Type) as BinaryImage | convert fomr -language to text-format output.(png,gif,svgz) | |
| Property List | ||
| Codepage as Integer, | Return and set the codepage . | |
| NEATO | Name | Description |
| ProgramID: | WinGraphviz.NEATO | for undirected Graph |
| Function List | ||
| ToSvg(String Source) as String | convert from NEATO-language to SVG | |
| ToPlain(String Source) as String | convert from NEATO-language to Simple,line-based ASCII format. | |
| ToPlainExt(String Source) as String | ||
| ToDot(String Source) as String | ||
| ToCanon(String Source) as String | convert from NEATO-language to CANON for tcl/tk version | |
| ToPS(String Source) as String | convert from NEATO-language to PostScript (EPSF) . | |
| ToCMAP(String Source) as String | convert from NEATO-language to HTML client-side image map | |
| ToIMAP(String Source) as String | convert from NEATO-language to apache map file for httpd servers. | |
| ToISMAP(String Source) as String | convert from NEATO-language to HTML server-side image map | |
| ToTextGraph(String Source,Integer Type) as String | convert fomr -language to text-format output.(dot,ps,svg,plain,plain_ext,canon.........) | |
| Validate(String Source) as Boolean | check NEATO-language | |
| ToGIF(String Source) as BinaryImage | convert from NEATO-language to GIF. | |
| ToPNG(String Source) as BinaryImage | convert from NEATO-language to PNG (Portable Network Graphics). | |
| ToJPEG(String Source) as BinaryImage | convert from NEATO-language to JPEG. | |
| ToEMF(String Source) as BinaryImage | convert from NEATO-language to Enhanced-Format Metafiles. | |
| ToSVGZ(String Source) as BinaryImage | convert from NEATO-language to compressed SVG. | |
| ToWBMP(String Source) as BinaryImage | convert from NEATO-language to Wireless BitMap (WBMP) format. | |
| ToJPEG(String Source) as BinaryImage | convert from NEATO-language to JPEG format. | |
| ToBinaryGraph(String Source,Integer Type) as BinaryImage | convert fomr -language to text-format output.(png,gif,svgz) | |
| Property List | ||
| Codepage as Integer, | Return and set the codepage . | |
| BinaryImage | Name | Description |
| ProgramID: | WinGraphviz.BinaryImage | For Binary Format Image like gif,png... |
| Function List | ||
| Save(String FilePath) as Boolean, | Save Image as local file | |
| Dump(IStream stream) as Boolean, | Open a stream and write Image data | |
| ToBase64String() as String, | Encode BinaryImage to Base64 format. | |
| Property List | ||
| Type as String, | Return the suffix of the Image filename,like("png","gif") | |
| Picture as Picture, | Return a Picture Object of the Image | |
| Enum | Name | Description |
| GraphvizTypeIndex | GRAPHVIZ_ATTRIBUTED_DOT = 0, | ASCII format. |
| GRAPHVIZ_PS = 1, | ASCII format. | |
| GRAPHVIZ_PLAIN = 6, | ASCII format. | |
| GRAPHVIZ_PLAIN_EXT = 7, | ASCII format. | |
| GRAPHVIZ_GIF = 11, | Binary format. | |
| GRAPHVIZ_JPEG = 12, | Binary format. | |
| GRAPHVIZ_PNG = 13, | Binary format. | |
| GRAPHVIZ_WBMP = 14, | Binary format. | |
| GRAPHVIZ_ISMAP = 16, | ASCII format. | |
| GRAPHVIZ_IMAP = 17, | ASCII format. | |
| GRAPHVIZ_CMAP = 18, | ASCII format. | |
| GRAPHVIZ_VRML = 19, | ASCII format. | |
| GRAPHVIZ_SVG = 23, | ASCII format. | |
| GRAPHVIZ_SVGZ = 24, | Binary format. | |
| GRAPHVIZ_CANONICAL_DOT = 25, | ASCII format. | |
| GRAPHVIZ_CANONICAL_EMF = 27, | Binary format. |
The dot language.
DOT Guide from www.research.att.com
Neato Guide from www.research.att.com
Font :WinGraphviz supported fontname alias.
WinGraphviz supported fontname alias for Korean,Unified Hangeul Code .(
)
WinGraphviz supported fontname alias for Japanese,Shift-JIS .(
)
WinGraphviz supported fontname alias for Simplified Chinese,GB .(
)
WinGraphviz supported fontname alias for Tradition Chinese,Big5 .(
)
WinGraphviz supported node shapes.
Arrow :WinGraphviz supported arrow types.
Arrow's color in WinGraphviz .
Color :DOT Builder : It's a program to test the "Directed Graph" on the web
NEATO Builder : It's a program to test the "unDirected Graph" on the web
Use WinGraphviz in ASP : How to use WinGraphviz in ASP
Use WinGraphviz in Simplified Chinese (
)
Use WinGraphviz in Tradition Chinese (
)
Use WinGraphviz with SVG Viewer : Integrate WinGraphviz and "Adobe SVG Viewer" in Internet Explorer
Use WinGraphviz in C++ : How to use WinGraphviz in Visual C++
Use WinGraphviz in Perl : How to use WinGraphviz in Perl
Use WinGraphviz with "Picture control" : How to dynamic display image in your application
Embended WinGraphviz in "Internet Explorer"
Submit bug reports or suggestions for the WinGraphviz ood Tsen.