Use WinGraphviz in Perl(Active Perl / Win32) |
|||
| Requirement | How to do | |||
Requirement
How to do
* Step1 : install WinGraphviz first
* Step2 : install Active Perl
* Step3 : Copy the following code and save it in case_wingraphviz_in_perl.pl
#Sample code of Wingraphviz
use Win32::OLE;
$objDOT = new Win32::OLE "WinGraphviz.DOT";
$strCMD = "digraph G {A -> B -> C -> A;}";
$objPNG = $objDOT->ToPNG($strCMD);
$objPNG->Save("C:\dot_in_perl.png");
|
* Step3 : Run case_wingraphviz_in_perl.pl
Result :
Submit bug reports or suggestions for the WinGraphviz ood Tsen.