[fpc-pascal] Implementing AggPas with PtcGraph

James Richters james at productionautomation.net
Wed Jun 21 19:05:34 CEST 2017

Is there a more direct way of getting aggpas to send its output to ptcgraph?   Currently I'm doing as in the demo programs and defining an array then using putimage() to transfer the array to ptcgraph... this is fairly slow, especially for fullscreen high resolution applications.   I'm trying to follow through some of the demos included with ptcpas and it seems they do something like:

{ lock surface pixels }
pixels := surface.lock;

Then using a pointer defined by pixels, the program makes changes to all the pixels, then

{ unlock surface }
{ copy surface to console }
 surface.copy(console, area, area);

send the changes to the screen.   I'm wondering if I can have aggpas work with the ptcgraph buffer directly, and maybe this would be more efficient than putimage()

Any ideas?



More information about the fpc-pascal mailing list