wdScaleImage: Changes the scale of an image

Description Usage Arguments Value TODO Examples

View source: R/addons.R

Description

This function change the sclaing of an image in a document.

Usage

1
2
wdScaleImage(i, ishp = NULL, width = NULL, height = NULL,
  lock.asp = TRUE, units = "px", wdapp = .R2wd)

Arguments

i

The number of the image inside the document.

ishp

A pointer to the inline shape, as e.g. returned by wdReplaceTextByImage.

width

The width of the new image in Percent of the word page.

height

The height of the new image in Percent of the word page.

lock.asp

Locks the ratio of height and width (aspect ratio).

units

The number of pixel the image should have

Value

invisibly returns pointer to new inlineshape object.

TODO

add example with wdReplaceTextByImage

Examples

1
2
3
4
file <- system.file("inst/template.docx", package = "R2wdaddons")
wdGet2(file)

wdScaleImage(i = 1, width=70, units="w")

markheckmann/R2wdaddons documentation built on Sept. 13, 2019, 8:40 a.m.