diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-02-20 18:04:23 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-02-20 18:04:23 +1300 |
commit | f18ea4474bb4905a00e0b39e7205c177ee994196 (patch) | |
tree | 67a06833192e0f47695ab872badb88fb0970280a /src/c_fl_jpeg_image.cpp | |
parent | c47bea48a24e51e178354f3e3bb53d8b9964b769 (diff) |
Improved binding for the FLTK.Images package subtree
Diffstat (limited to 'src/c_fl_jpeg_image.cpp')
-rw-r--r-- | src/c_fl_jpeg_image.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/c_fl_jpeg_image.cpp b/src/c_fl_jpeg_image.cpp index 93ab22d..be99257 100644 --- a/src/c_fl_jpeg_image.cpp +++ b/src/c_fl_jpeg_image.cpp @@ -11,6 +11,11 @@ JPEG_IMAGE new_fl_jpeg_image(const char * 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); } |