diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-08 16:50:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-08 16:50:47 +0200 |
commit | d26442e709f6361af9ac755ec9291bb43f2cd69b (patch) | |
tree | f84384f85f9f4a329ffd892b4a6a238e932f161e /core/io/image.h | |
parent | 697805af54f3d25195617a513e18ec3a4f9fe0c6 (diff) | |
parent | d2900429e81175a9f48240b180f1d8e3ab52865c (diff) |
Merge pull request #60739 from KoBeWi/add_static_methods_everywhere!!
Diffstat (limited to 'core/io/image.h')
-rw-r--r-- | core/io/image.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/image.h b/core/io/image.h index 2cad26f3e9..6b323e5eb3 100644 --- a/core/io/image.h +++ b/core/io/image.h @@ -290,6 +290,7 @@ public: Vector<uint8_t> get_data() const; Error load(const String &p_path); + static Ref<Image> load_from_file(const String &p_path); Error save_png(const String &p_path) const; Error save_jpg(const String &p_path, float p_quality = 0.75) const; Vector<uint8_t> save_png_to_buffer() const; |