addText: Image Text Incrustation

View source: R/addText.R

addTextR Documentation

Image Text Incrustation

Description

Adds Text to image.

Usage

addText(image, text, color, xoff = 0, yoff = 0, corner = "TL")

Arguments

image

a [0,1] image.

text

a character string.

color

a character string. color of the text.

xoff

positive integer. x offset in image to start writing text.

yoff

positive integer. y offset in image to start writing text.

corner

a character string. where to position text in the image. Allowed are "TL", "TR", "BL", "BR", for top-left, top-right, bottom-left, bottom-right, respectively.

Details

One-lined text will be added so has to be fully contained within image and anchored at desired corner plus x and y offset from it.

Value

an image with text added.


IFC documentation built on Sept. 14, 2023, 1:08 a.m.