can now save as 8bits png file
This commit is contained in:
parent
0a814f1bc6
commit
5da64b6145
@ -365,6 +365,12 @@ switch (foo) {
|
|||||||
case FILE_TYPE_PNM:
|
case FILE_TYPE_PNM:
|
||||||
foo = fimg_save_as_pnm(&cumul, outfile, 1);
|
foo = fimg_save_as_pnm(&cumul, outfile, 1);
|
||||||
break;
|
break;
|
||||||
|
case FILE_TYPE_PNG:
|
||||||
|
foo = fimg_save_as_png(&cumul, outfile, 0);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "can't save as %s\n", outfile);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// free buffers
|
// free buffers
|
||||||
fimg_destroy(&cumul);
|
fimg_destroy(&cumul);
|
||||||
|
Loading…
Reference in New Issue
Block a user