Restore the openexr grayscale property.
This commit is contained in:
parent
ecf187705e
commit
42f7f0894e
3 changed files with 11 additions and 3 deletions
|
|
@ -2324,11 +2324,11 @@ Error Image::save_exr(const String &p_path, bool p_grayscale) const {
|
|||
return save_exr_func(p_path, Ref<Image>((Image *)this), p_grayscale);
|
||||
}
|
||||
|
||||
Vector<uint8_t> Image::save_exr_to_buffer() const {
|
||||
Vector<uint8_t> Image::save_exr_to_buffer(bool p_grayscale) const {
|
||||
if (save_exr_buffer_func == nullptr) {
|
||||
return Vector<uint8_t>();
|
||||
}
|
||||
return save_exr_buffer_func(Ref<Image>((Image *)this), false);
|
||||
return save_exr_buffer_func(Ref<Image>((Image *)this), p_grayscale);
|
||||
}
|
||||
|
||||
Error Image::save_webp(const String &p_path, const bool p_lossy, const float p_quality) const {
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ public:
|
|||
Error save_jpg(const String &p_path, float p_quality = 0.75) const;
|
||||
Vector<uint8_t> save_png_to_buffer() const;
|
||||
Vector<uint8_t> save_jpg_to_buffer(float p_quality = 0.75) const;
|
||||
Vector<uint8_t> save_exr_to_buffer() const;
|
||||
Vector<uint8_t> save_exr_to_buffer(bool p_grayscale) const;
|
||||
Error save_exr(const String &p_path, bool p_grayscale) const;
|
||||
Error save_webp(const String &p_path, const bool p_lossy = false, const float p_quality = 0.75f) const;
|
||||
Vector<uint8_t> save_webp_to_buffer(const bool p_lossy = false, const float p_quality = 0.75f) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue