Image.saveExr

Saves the image as an EXR file to path. If grayscale is true and the image has only one channel, it will be saved explicitly as monochrome rather than one red channel. This function will return constant ERR_UNAVAILABLE if Godot was compiled without the TinyEXR module. Note: The TinyEXR module is disabled in non-editor builds, which means saveExr will return constant ERR_UNAVAILABLE when it is called from an exported project.

struct Image
@nogc nothrow const
GodotError
saveExr
(
in String path
,
in bool grayscale = false
)

Meta