Saving Graphics Files

Graphical views of entities may be created and saved as jpg or png files, using the command $ent->draw().

# loop through all functions 
foreach $func ($db->ents("Function")) { 
   # save png file of Callby graphs of functions 
   $file = "callby_" . $func->name() . ".png"; 
   print $func->longname(), " -> ", $file,"\n"; 
   $func->draw("callby",$file); 
} 

On Windows systems that have Visio installed, vsd files may also be created.

See $ent->draw() and Visio::draw() for detailed information.


Scientific Toolworks, Inc.
http://www.scitools.com