diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-12-20 17:16:21 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-12-20 17:17:12 -0300 |
commit | c9d88fd8e8461cc1d5f83281e8d64ef10a5f02c6 (patch) | |
tree | 8890054051669a779aa70c024d3bc1578779b5fc /core/image.h | |
parent | 03823f12c5ae63bee23e6ee60077c05229ab5a77 (diff) |
Add functions to image to load a PNG or JPG from a buffer, closes #4024
Diffstat (limited to 'core/image.h')
-rw-r--r-- | core/image.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/image.h b/core/image.h index 24693aa706..cf7632a1f1 100644 --- a/core/image.h +++ b/core/image.h @@ -296,6 +296,9 @@ public: static void set_compress_bc_func(void (*p_compress_func)(Image *, CompressSource)); static String get_format_name(Format p_format); + Error load_png_from_buffer(const PoolVector<uint8_t> &p_array); + Error load_jpg_from_buffer(const PoolVector<uint8_t> &p_array); + Image(const uint8_t *p_mem_png_jpg, int p_len = -1); Image(const char **p_xpm); |