summaryrefslogtreecommitdiff
path: root/src/c_fl_png_image.cpp
blob: b4fb29a723a9f93959407464d3bf77ec56b4c8c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22


#include <FL/Fl_PNG_Image.H>
#include "c_fl_png_image.h"




PNG_IMAGE new_fl_png_image(const char * f) {
    Fl_PNG_Image *p = new Fl_PNG_Image(f);
    return p;
}

PNG_IMAGE new_fl_png_image2(const char *name, void *data, int size) {
    Fl_PNG_Image *p = new Fl_PNG_Image(name, reinterpret_cast<uchar*>(data), size);
    return p;
}

void free_fl_png_image(PNG_IMAGE p) {
    delete reinterpret_cast<Fl_PNG_Image*>(p);
}