export planes as 16 bits PGM, second try

This commit is contained in:
tth
2022-03-02 00:59:36 +01:00
parent c17132e969
commit b98c398c3c
4 changed files with 16 additions and 4 deletions
+12
View File
@@ -28,8 +28,20 @@ if (foo) {
return -6;
}
foo = fimg_save_plane_as_pgm(&image, "red.pgm", 'r');
if (foo) {
fprintf(stderr, "err save red %d\n", foo);
return -6;
}
foo = fimg_save_plane_as_pgm(&image, "green.pgm", 'g');
if (foo) {
fprintf(stderr, "err save green %d\n", foo);
return -6;
}
foo = fimg_save_plane_as_pgm(&image, "blue.pgm", 'b');
if (foo) {
fprintf(stderr, "err save blue %d\n", foo);
return -6;
}
return 0;
}