mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
Support all image depths (1-4) in fl_write_png()
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user