bbx_geometry: Convert bbx to magick-geometry

Description Usage Arguments Value See Also Examples

Description

Convert bbx to magick-geometry

Usage

1
2
3

Arguments

bbx

character vector of bounding boxes to be converted to geometries

g

character vector of geometries to be converted to bbxes

Value

character vector of magick-compliant geometry string representing bounding box area in the format "width x height +x_off +y_off" (https://www.imagemagick.org/Magick++/Geometry.html)

See Also

[magick::geometry] for converting integers (four individual columns) to geometry

Examples

1
2
3
4
# area from c(0,0) to c(100,200) counting from top left
bbx_to_geometry("0 0 100 200")
bbx_to_geometry(c("0 0 100 200", "100,100,200, 200"))
geometry_to_bbx(c("100x200+12+14", "100x200", "+12+14", "x200+12+14"))

dmi3kno/bbx documentation built on May 14, 2020, 9:08 p.m.