diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-22 09:48:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 09:48:23 +0200 |
commit | a891c71426802e0b517369ce3343440b783e2a62 (patch) | |
tree | 6a4f339337a06bf7a8314138ac1aed0bb3f17808 | |
parent | efe291a2069310342442f40d0dcb8a6fc3f9f057 (diff) | |
parent | d4d4229d9d4cca82ae194f075e907ff8552ad39d (diff) |
Merge pull request #38886 from Xrayez/save-png-to-buffer-bind
Expose `Image.save_png_to_buffer` method
-rw-r--r-- | core/image.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/image.cpp b/core/image.cpp index c98aff0f29..4ab71128cd 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -3018,6 +3018,7 @@ void Image::_bind_methods() { ClassDB::bind_method(D_METHOD("load", "path"), &Image::load); ClassDB::bind_method(D_METHOD("save_png", "path"), &Image::save_png); + ClassDB::bind_method(D_METHOD("save_png_to_buffer"), &Image::save_png_to_buffer); ClassDB::bind_method(D_METHOD("save_exr", "path", "grayscale"), &Image::save_exr, DEFVAL(false)); ClassDB::bind_method(D_METHOD("detect_alpha"), &Image::detect_alpha); |