Hi
@Pe3s
I don't know if this is what you need, but here is a template that create a resizable Form with BGRAPicture Load and save
with Zoom and Pan.
You need the BGRABitmap Pack.
https://wiki.freepascal.org/Project_TemplatesExtract from the .zip and put the BGRAPicture in you Template Directory.
You'll have a new entry in File->New project from template->BGRA Picture Form
Fill the Dialog box with the name of your program, Form and Unit and select where you want to create your new program.
Feel free to modify.
B->