View source: R/img_make_transparent.R
img_make_transparent | R Documentation |
Turn white into fully transparent and black into fully opaque in a greyscale image.
img_make_transparent(x)
x |
a greyscale image, of type |
x <- img_read(system.file("extdata", "blob.jpg", package="morphr"))
img_show(x)
img_show(img_make_transparent(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.