How to use BGRABitmap:
At
https://github.com/bgrabitmap/bgrabitmap/releases download Source code (zip).
Extract it. Bgrabitmap-11.5.6.
In bgrabitmap-11.5.6 copy bgrabitmap-11.5.6 sub-directory
to The directory where you installed Lazarus. (Where lazarus.exe is).
Components sub-director.
Copy the whole directory to the Components sub-director.
Start Lazarus.
Package > Open Package File (.lpk).
Open Lazarus directory/components/bgrabitmap-11.5.6/
bgrabitmap and chose bgrabitmappack.lpk.
New the Package compiler will appear.
In the Package compiler:
Press the compile button.
In the IDE massage window. It will say “compile package
BRGABitmapPack 11.5.6 Success” Disregard the Warnings.
In each project that you use BRGABitmapPack. You need to
add BRGABitmapPack.
To do this:
Add BGRABitmap, BGRABitmapTypes to the uses line of
Your Unit1.pas file.
Then:
Package > Open Package File (.lpk).
Open Lazarus directory/components/bgrabitmap-11.5.6/
bgrabitmap and chose bgrabitmappack.lpk.
New the Package compiler will appear.
In the Package compiler:
Do not press the compile button.
Press Use button > Add to Project.
And close the Package compiler.
New compile your project. It shud compile without errors.
If not:
Add BGRABitmap, BGRABitmapTypes to the uses line.
Recompile BGRABitmap and
Press Use button > Add to Project.
And try agen.