Skip to contents

Draw line within an image (Vector version). Modifies the image in place.

Usage

image_draw_line_ex(dst, start, end, thick, color)

Arguments

dst

An image.

start

A numeric vector of length 2.

end

A numeric vector of length 2.

thick

An integer. Line thickness.

color

A color.

Examples

if (FALSE) {
img <- gen_image_color(100, 100, "white")
image_draw_line_ex(img, c(0, 0), c(100, 100), 2L, "red")
}