summaryrefslogtreecommitdiff
path: root/src/c_fl_rgb_image.cpp
blob: e91eec2c7b216d98f49807f5a5cf87fcb1d95d0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39


#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();
}




void fl_rgb_image_draw(RGB_IMAGE i, int x, int y, int w, int h, int cx, int cy) {
    reinterpret_cast<Fl_RGB_Image*>(i)->draw(x, y, w, h, cx, cy);
}