geometry_parse: Convert geometry string to matrix or matrix to geometry...

View source: R/oxy-geometry.R

geometry_parseR Documentation

Convert geometry string to matrix or matrix to geometry string

Description

Smooth transition between matrix and text representation of magick geometries

Usage

geometry_parse(x)

geometry_paste(x)

Arguments

x

input, vector or matrix

Details

For single entry into 'geometry_paste()', you can also provide numeric vector with width, heigh, x_off and y_off values.

Value

matrix or vector.

Examples

## Not run: 
if(interactive()){
 geometry_parse(c("100x200+12+14", "100x200", "+12+14", "x200+12+14"))
 geometry_paste(c(100,200,12,14))
 }

## End(Not run)

dmi3kno/bunny documentation built on Dec. 7, 2022, 7:22 p.m.