summaryrefslogtreecommitdiff
path: root/src/c_fl_rgb_image.cpp
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-05-15 12:14:49 +1000
committerJed Barber <jjbarber@y7mail.com>2017-05-15 12:14:49 +1000
commit7e92861796b9ec5aa4cdfc4ebff412dd96aeb137 (patch)
tree820cc94f6a230238b9c3869a627094489f293c62 /src/c_fl_rgb_image.cpp
parentffc566b41d9dd64b2d571f68458a272f503958c6 (diff)
Most relevant RGB_Image methods implemented except for Draw, Create
Diffstat (limited to 'src/c_fl_rgb_image.cpp')
-rw-r--r--src/c_fl_rgb_image.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/c_fl_rgb_image.cpp b/src/c_fl_rgb_image.cpp
new file mode 100644
index 0000000..83a89ac
--- /dev/null
+++ b/src/c_fl_rgb_image.cpp
@@ -0,0 +1,33 @@
+
+
+#include <FL/Fl_RGB_Image.H>
+#include "c_fl_rgb_image.h"
+
+
+void free_fl_rgb_image(RGB_IMAGE i) {
+ delete reinterpret_cast<Fl_RGB_Image*>(i);
+}
+
+
+RGB_IMAGE fl_rgb_image_copy(RGB_IMAGE i, int w, int h) {
+ return reinterpret_cast<Fl_RGB_Image*>(i)->copy(w, h);
+}
+
+
+RGB_IMAGE fl_rgb_image_copy2(RGB_IMAGE i) {
+ return reinterpret_cast<Fl_RGB_Image*>(i)->copy();
+}
+
+
+
+
+void fl_rgb_image_color_average(RGB_IMAGE i, int c, float b) {
+ reinterpret_cast<Fl_RGB_Image*>(i)->color_average(c, b);
+}
+
+
+void fl_rgb_image_desaturate(RGB_IMAGE i) {
+ reinterpret_cast<Fl_RGB_Image*>(i)->desaturate();
+}
+
+