imDisplay {xRing} | R Documentation |
Display Image Using tcltk Package
Description
xRing
Usage
imDisplay(im, zoom = NULL, title = NULL)
Arguments
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 |
Value
a tcltk object
Examples
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
}
[Package xRing version 0.1.1 Index]