Re: [fpc-pascal] AggPas / PTCGraph dynamic memory allocation

2017-11-11 Thread James Richters
>AggPas doesn't care where or what the data buffer is, as long as you tell >AggPas where to start, width, height and stride. > So use GetImage, assign that buffer to a pointer. Increment the pointer by (3 > *Size(Word)) and give that pointer to agg.Attach(). The data is preceded by 3 Longints, n

[fpc-pascal] Database apps on Debian etc.

2017-11-11 Thread Mark Morgan Lloyd
Graeme started a short thread on databases in "The Other Place" a few days ago, but I thought this might be of sufficient general relevance to raise here. I had a system outage this morning, with all apps suddenly losing their connectivity to the PostgreSQL server. It turned out that the cau

Re: [fpc-pascal] AggPas / PTCGraph dynamic memory allocation

2017-11-11 Thread Graeme Geldenhuys
On 2017-11-11 01:48, James Richters wrote: I can use a dynamic method with PTCGraph with getimage and putimage But if I allocate memory this way, while it works fine with getimage and putimage, I can't figure out how to use it with AggPas because the first 3 words are not part of the bitmap data