diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-05-20 14:43:24 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-05-20 14:43:24 +0300 |
commit | d4d4229d9d4cca82ae194f075e907ff8552ad39d (patch) | |
tree | d3624f8597cd7684763d231b1a2b9059527a38b1 | |
parent | d3612d04c76e2b9cc840633ed6b7cdf5ac2ad3fe (diff) |
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); |