diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-05-15 11:08:34 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-05-15 11:08:34 +1000 |
commit | ffc566b41d9dd64b2d571f68458a272f503958c6 (patch) | |
tree | e6709cd1c3109e52acea15828f3309174e987c5f /src/c_fl_image.cpp | |
parent | 8262e35fb43d8ab0e1d82d966e3d6bb415a7ade7 (diff) |
Most relevant methods for Image now implemented, except for Draw
Diffstat (limited to 'src/c_fl_image.cpp')
-rw-r--r-- | src/c_fl_image.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/c_fl_image.cpp b/src/c_fl_image.cpp index 8222392..a02c683 100644 --- a/src/c_fl_image.cpp +++ b/src/c_fl_image.cpp @@ -15,6 +15,31 @@ void free_fl_image(IMAGE i) { } +IMAGE fl_image_copy(IMAGE i, int w, int h) { + return reinterpret_cast<Fl_Image*>(i)->copy(w, h); +} + + +IMAGE fl_image_copy2(IMAGE i) { + return reinterpret_cast<Fl_Image*>(i)->copy(); +} + + + + +void fl_image_color_average(IMAGE i, int c, float b) { + reinterpret_cast<Fl_Image*>(i)->color_average(c, b); +} + + +void fl_image_desaturate(IMAGE i) { + reinterpret_cast<Fl_Image*>(i)->desaturate(); +} + + +void fl_image_inactive(IMAGE i) { + reinterpret_cast<Fl_Image*>(i)->inactive(); +} int fl_image_w(IMAGE i) { |