What it says it does.
array_to_cimg(x, flatten_alpha = TRUE, bg = "white", rm_alpha = TRUE)
A cimg
object.
An image array, i.e. as read in by readPNG.
Logical. Flatten the alpha channel?
Passed to imager::flatten.alpha()
. Pixel color for
previously transparent pixels.
Logical. Remove the alpha channel? Note this will "reveal" whatever is hidden behind the transparent pixels, rather than turn them white.