new_rayimg(x = NULL, filetype = NULL, gamma_correct = FALSE)
Arguments
- x
Default NULL
. The underlying array/matrix to wrap.
- filetype
Default NULL
. Original source type to record (e.g., "png").
- gamma_correct
Default FALSE
. Whether to gamma correct the image.
Value
An object of class c("rayimg", <original class>)
with filetype
attribute.