The best option to extract pixels from a bitmap is with BitmapCreator. BitmapCreator does rely on JavaFX however it might work in a non-ui project. You should try it.
of course. he said "BitmapCreator does rely on JavaFX"
But because i cant install javaFX or openjfx on my platform, i cant use it.
Even if i just use the type paint it throws an exeption "noClassDefFoundError"
With BitmapCreator the error is:
java.lang.NoClassDefFoundError: javafx/scene/Node
Its my NAS. The JRE is a thirdparty port, but without JavaFX.
Maybe its possible to read the bytes from a raw BMP and convert it back to its colors? I dont know