[fpc-pascal] Implementing AggPas with PtcGraph
Stefan V. Pantazi
svpantazi at gmail.com
Mon Jun 5 04:12:20 CEST 2017
I've tested the example on 64 bit linux as a native application as well
cross compiled for a x86_64 windows target. Worked fine in both Wine and
on a Win64 machine.
In my experience, the one dependency that AggPas has potential to fail
may be related to the freetype library. If you plan to run your app on
windows only, then you can turn freetype off and AggPas will happily use
windows font libraries. Search for the AGG2D_USE_FREETYPE define and
comment it out.
Hope this helps,
Stefan
On 06/04/2017 06:30 PM, James Richters wrote:
> Thanks for figuring out how to make this work, I would have never figured it
> out with the documentation I was able to find.
>
> I'm out of town this week so I tried to download the sample program to my
> laptop and discovered another issue. While I can normally just compile my
> programs on my laptop and run them, I have noticed that I can't do this
> with programs with aggpas in them. They compile successfully but when I try
> to run them I get a "system error: The Program can't start because
> MSVCR71.dll is missing from your computer. Try reinstalling the program to
> fix this problem" I suspect I get this because I have never actually
> installed free Pascal or something that I happened to install on my
> development pc on my laptop, I have always run freepascal it from a backup
> made from my development machine. I have not tried installing freepascal
> on my lap top yet because I would like to figure out what I will need to do
> on my target installations where freepascal will not be installed.
>
> Any ideas on what causes this error and advice on how to install what is
> needed on client (non-development) systems?
>
> James
>
> -----Original Message-----
> From: fpc-pascal [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf
> Of Stefan V. Pantazi
> Sent: Saturday, June 03, 2017 12:45 PM
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Subject: Re: [fpc-pascal] Implementing AggPas with PtcGraph
>
> I seem to have some problems with logging on the bug tracker. I've used it
> in the recent past a couple of time but I am unable to log on for some
> reason. I will try later to create a new account and submit a fpc doc bug
> report.
>
> At any rate, I attached the updated example based on Nikolay's recent post
> which had the correct information. There was a third "reserved"
> parameter that had to be added to the bitmap buffer structure. Without it,
> the output was slightly clipped to the right. Also, for the example to work,
> the agg object constructor must be modified as well, I included all the info
> in the example header. I think the example program
> (aggpas_ptcgraph_output.pas) fits well together with the other demos in
> fpGUI and PtcPas/ptcgraph packages, so adding it to the packages would help,
> regardless whether graph.PutImage documentation is updated.
>
> Stefan
>
> On 06/03/2017 06:52 AM, Graeme Geldenhuys wrote:
>> On 2017-06-03 01:56, Stefan V. Pantazi wrote:
>>> http://pascal.net.ru/PutImage+(en)
>>> [...]
>>> "BitMap is an untyped parameter that contains the height and width of
>>> the region, and the bit image that will be put onto the screen."
>>> [...]
>>
>>
>> Could you file a FPC Documentation bug report and ask that this
>> information be added. As you found out (very difficultly), this is vital
>> information.
>>
>>
>> Regards,
>> Graeme
>>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
--
_______________________________________________________________
Stefan V. Pantazi, MD, PhD
Professor, Health Informatics
School of Health & Life Sciences and Community Services
Conestoga College Institute of Technology and Advanced Learning
299 Doon Valley Drive
Kitchener, ON, Canada, N2G 4M4
office: 1C23
phone: (519) 748-5220 ext. 3950
email: svpantazi at gmail.com
web: https://sites.google.com/site/stefanvpantazi/
_______________________________________________________________
More information about the fpc-pascal
mailing list