Learn R Programming

TiddlyWikiR (version 1.0.1)

twImage-class: A class to handle TiddlyWiki images.

Description

Some utilities to insert images into TiddlyWiki.

Arguments

Usage

new ("twImage", imgf, ...) twImage (imgf, ...)

Slots

imgf:
the image file.
label:
label of the image.
ref:
optional; a target tiddler or URL to be redirected to.
align:
alignment of the image. May be NA, "r" or "l".
width:
width scaling factor.
height:
height scaling factor.

Methods

imgf:
access the imgf slot.
label:
access the label slot.
ref:
access the ref slot.
align:
access the align slot.
width:
access the width slot.
height:
access the height slot.

Details

Resizing is done using http://www.tiddlytools.com/#ImageSizePlugin where (w,h) indicates the desired width and height (in CSS units, e.g., px, em, cm, in, or %). [img(w+,h+)[...][...]]

See Also

twTable and twLink

Examples

Run this code
new ("twImage", imgf = "myImageFile.png")
twImage ("myImageFile.png")
wikify (twImage ("myImageFile.png"))

Run the code above in your browser using DataLab