You can use the 'lite' version, with less stuff not a big monster..
core version of BGRABitmap available: by adding the library to the project include path and setting BGRABITMAP_CORE directive (see test/testcore sample)
No packages to install, just add path relative or inside your project folder... No need to install bgracontrols, use it with a normal canvas.
OK, so I took the last snippet of working code that was posted.
- Added BGRABitmap to the uses clause.
- Add compiler options: -dBGRABITMAP_CORE
- Compiled with GTK2 widgetset
$ ls -la --time-style='+' test.gtk2
-rwxr-xr-x 1 user user 2957824 test.gtk2
$ ls -la --time-style='+' bgratest/test.gtk2
-rwxr-xr-x 1 user user 3859232 bgratest/test.gtk2
$ size -G test.gtk2
text data bss total filename
2007720 939693 110312 3057725 test.gtk2
$ size -G bgratest/test.gtk2
text data bss total filename
2717064 1133857 185272 4036193 bgratest/test.gtk2
The executable grows by almost 1Mb, and requires countless source files (I tried working out which ones but gave up).
As I shall be deploying to a small embedded system with very limited resources, I am trying to reduce all footprints.
BGRABitmap may be great for bigger projects, but for my current use-case it is, unfortunately a monster.