blob: a02c683531f5bfa4b0eda74b9270d86b1cc8d2fe (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#include <FL/Fl_Image.H>
#include "c_fl_image.h"
IMAGE new_fl_image(int w, int h, int d) {
Fl_Image *i = new Fl_Image(w, h, d);
return i;
}
void free_fl_image(IMAGE i) {
delete reinterpret_cast<Fl_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) {
return reinterpret_cast<Fl_Image*>(i)->w();
}
int fl_image_h(IMAGE i) {
return reinterpret_cast<Fl_Image*>(i)->h();
}
int fl_image_d(IMAGE i) {
return reinterpret_cast<Fl_Image*>(i)->d();
}
|