Function 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.

godot.core.defs.GodotError saveExr (
  const(String) path,
  const(bool) grayscale = false
) nothrow @nogc const;