Expose `Image.save_png_to_buffer` method

This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-05-20 14:43:24 +03:00
parent d3612d04c7
commit d4d4229d9d
1 changed files with 1 additions and 0 deletions

View File

@ -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);