imDisplay | R Documentation |
xRing
imDisplay(im, zoom = NULL, title = NULL)
im |
an image (an object of class "cimg") |
zoom |
the zoom factor (ratio), for zoom = 1 the image is shown with no zoom (original size), when zoom is less than 1 the image is zoomed out. The default value of zoom is NULL. |
title |
the window title |
a tcltk object
if (interactive()) { file_path <- system.file("img", "AFO1046.1200dpi.png", package = "xRing") im <- imRead(file_path) tkWin <- imDisplay(im, zoom = .25) tkWin$env$ZOOM # 4 means 25% zoom }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.