png_dims: .png Sizing

Description Usage Arguments Examples

Description

png_dims - Reports the width and height of a .png file.

size_ratio - Gives either the new width or height given the other and the old width and height.

Usage

1
2
3
png_dims(path)

size_ratio(width.a, height.a, width.b, height.b, path = NULL)

Arguments

path

Path to the in .png file.

width.a

The new width (supply either width.a or height.a).

height.a

The new height (supply either width.a or height.a).

width.b

The old width (may give path to .png in liue of old width and height).

height.b

The old height(may give path to .png in liue of old width and height).

Examples

1
2
3
4
5
6
7
8
## Not run: 
file <- system.file("extdata/deb_roy.png", package = "embodied")
png_dims(file)
size_ratio(, 10, 3, 5)
size_ratio(10, , 3, 5)
size_ratio(10, , path = file)

## End(Not run)

trinker/embodied documentation built on May 31, 2019, 8:42 p.m.