From d4d4229d9d4cca82ae194f075e907ff8552ad39d Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Wed, 20 May 2020 14:43:24 +0300 Subject: [PATCH] Expose `Image.save_png_to_buffer` method --- core/image.cpp | 1 + 1 file changed, 1 insertion(+) 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);