summaryrefslogtreecommitdiff
path: root/src/c_fl_jpeg_image.cpp
blob: 6523e39ab310a6e57126523b04c9daf338ecd064 (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


//  Programmed by Jedidiah Barber
//  Released into the public domain


#include <FL/Fl_JPEG_Image.H>
#include "c_fl_jpeg_image.h"




JPEG_IMAGE new_fl_jpeg_image(const char * f) {
    Fl_JPEG_Image *j = new Fl_JPEG_Image(f);
    return j;
}

JPEG_IMAGE new_fl_jpeg_image2(const char *n, void *data) {
    Fl_JPEG_Image *j = new Fl_JPEG_Image(n, reinterpret_cast<uchar*>(data));
    return j;
}

void free_fl_jpeg_image(JPEG_IMAGE j) {
    delete reinterpret_cast<Fl_JPEG_Image*>(j);
}