These project was tested and compiled with:

Borland Delphi (32 bit)

Copy PIDEMO.DLL into the Astroart directory to see how it works.
This demo illustrates a image processing filter.

For newer Delphi versions with Unicode, change all PChar to PAnsiChar.
For 64 bit, change inside functions: Integer to NativeInt.