Support all image depths (1-4) in fl_write_png()

This commit is contained in:
Albrecht Schlosser
2021-11-11 20:58:09 +01:00
parent 500e470d39
commit 6d1f5608ba
3 changed files with 52 additions and 20 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ private:
// Support functions to write PNG image files (since 1.4.0)
FL_EXPORT int fl_write_png(const char *filename, int w, int h, int d, const unsigned char *pixels);
FL_EXPORT int fl_write_png(const char *filename, Fl_RGB_Image *img);
FL_EXPORT int fl_write_png(const char *filename, const char *pixels, int w, int h, int d=3, int ld=0);
FL_EXPORT int fl_write_png(const char *filename, const unsigned char *pixels, int w, int h, int d=3, int ld=0);
#endif