[fpc-pascal] Implementing AggPas with PtcGraph
James Richters
james at productionautomation.net
Fri Jun 23 19:27:11 CEST 2017
I'm trying to switch over a program to use aggpas but I'm not getting any results from moveto or lineto am I missing something?
I made a little demo that illustrates what's happening
agg^.lineWidth(4);
agg^.lineColor(0, 155, 0, 255);
agg^.rectangle(10, 10, 50, 50);
agg^.lineColor(155, 0, 0, 255);
agg^.line(60, 10, 60, 50);
agg^.lineto(100,50); //no line drawn here
agg^.lineColor(0, 0, 155, 255);
agg^.moveto(100, 10);
agg^.lineto(100,50); //no line drawn here
agg^.lineColor(155, 0, 155, 255);
agg^.line(120, 10, 120, 50);
James
More information about the fpc-pascal
mailing list