View source: R/read_write_exr.R
| write_exr | R Documentation |
Save RGBA numeric matrices to an OpenEXR file (32‑bit float, ZIP compression).
write_exr(path, r, g, b, a = matrix(1, nrow = nrow(r), ncol = ncol(r)))
path |
Character scalar output file. |
r |
Numeric matrix, red channel. |
g |
Numeric matrix, green channel. |
b |
Numeric matrix, blue channel. |
a |
Numeric matrix, alpha channel. |
None.
#Write the included data to an EXR file
tmpfile = tempfile(fileext = ".exr")
write_exr(tmpfile,
widecolorgamut[,,1],
widecolorgamut[,,2],
widecolorgamut[,,3],
widecolorgamut[,,4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.