Questions tagged [aggpas]

AggPas is an Object Pascal (Delphi or FreePascal) native port of the Anti-Grain Geometry library - AGG, originally written in industrially standard C++. AGG as well as AggPas is Open Source and free of charge 2D vector graphics library. Target platforms are Windows, Linux, OSX.

AggPas is an Object Pascal native port of the Anti-Grain Geometry library - AGG, originally written by Maxim Shemanarev in industrially standard C++. AGG as well as AggPas is Open Source and free of charge 2D vector graphics library.

AggPas can be compiled with Delphi or FreePascal, targeting Windows, Linux and OSX platforms.

4 questions
2
votes
1 answer

How to correctly pass through argument of object type with var prefix?

Summarization: type MyObject = object end; MyRecord = record end; MyClass = class end; procedure ProcA(aMyObject: MyObject); procedure ProcB(var aMyObject: MyObject); procedure ProcC(aMyRecord: MyRecord); procedure ProcD(var…
SOUser
  • 3,802
  • 5
  • 33
  • 63
2
votes
2 answers

What is the best way to render mixed vectorial and bitmap images in Delphi XE

I would like to be able to render a bitmap image superimposed with boundaries between pixels (the color of the boundary results from a home made routine). On zoom and pan the tickness of the boundary should remain the same. Here is an example image:…
1
vote
2 answers

How to draw angstrom (Å) using AggPas?

Summarization: No luck in finding how to output the angstrom sign using AggPas library. =============================================== The text-drawing function in the AggPas library takes a PAnsiChar parameter. I am wondering how can I can use…
SOUser
  • 3,802
  • 5
  • 33
  • 63
1
vote
1 answer

How do I attach a bitmap to an AggPas image?

I'm trying to use AggPas but find the documentation to lack code examples of attaching it to a bitmap. I have this code: procedure DrawScene(); var ObjLength,LineLength,Filllength,Obj,lin,angle,i:integer; Npoints : array[0..1] of Tpoint; VG:…
Arthur
  • 3,376
  • 11
  • 43
  • 70