powered by
Like other native CImg drawing functions, this is meant to be basic but fast. Use implot for flexible drawing.
draw_text(im, x, y, text, color, opacity = 1, fsize = 20)
an image
x coord.
y coord.
text to draw (a string)
either a vector or a string (e.g. "red")
0: transparent 1: opaque.
font size (in pix., default 20)
Simon Barthelme
implot,draw_circle,draw_rect
cimg.limit.openmp() draw_text(boats,100,100,"Some text",col="black") %>% plot
Run the code above in your browser using DataLab