Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

imdraw

Draw image on another image


Description

Draw image on another image

Usage

imdraw(im, sprite, x = 1, y = 1, z = 1, opacity = 1)

Arguments

im

background image

sprite

sprite to draw on background image

x

location

y

location

z

location

opacity

transparency level (default 1)

Author(s)

Simon Barthelme

See Also

imager.combine, for different ways of combining images

Examples

im <- load.example("parrots")
boats.small <- imresize(boats,.5)
#I'm aware the result is somewhat ugly
imdraw(im,boats.small,x=400,y=10,opacity=.7) %>% plot

imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.