// This program illustrates the use of the non-grid-based features of PSImageC. #include "amma/PSImage.hh" #include "amma/Option.hh" #include "amma/Filename.hh" #include "amma/Matrix2d.hh" #include "amma/Vector2d.hh" int main(int argc, char **argv) { OptionC option(argc,argv,TRUE); FilenameC fn = option.CharArr("o","test.ps","output filename"); option.Check(); PSImageC pv (fn, ImageRectangleC(200,200)); pv.DrawText(Point2dC(10,100),"Hello"); pv.DrawLine(Point2dC(120,10),Point2dC(110,20)); pv.DrawArrow(Point2dC(50,10),Vector2dC(10,20)); pv.DrawEllipse(Point2dC(50,50),Matrix2d2C(300,50,50,200)); }