diff options
Diffstat (limited to 'core/image.h')
-rw-r--r-- | core/image.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/image.h b/core/image.h index 8ce4f22dc1..a155823af7 100644 --- a/core/image.h +++ b/core/image.h @@ -87,10 +87,12 @@ public: FORMAT_MAX }; + static const char* format_names[FORMAT_MAX]; enum Interpolation { INTERPOLATE_NEAREST, INTERPOLATE_BILINEAR, + INTERPOLATE_CUBIC, /* INTERPOLATE GAUSS */ }; @@ -351,6 +353,8 @@ public: Image get_rect(const Rect2& p_area) const; static void set_compress_bc_func(void (*p_compress_func)(Image *)); + static String get_format_name(Format p_format); + Image(const uint8_t* p_mem_png, int p_len=-1); Image(const char **p_xpm); ~Image(); |