powered by
xRing
imDisplay(im, zoom = NULL, title = NULL)
a tcltk object
an image (an object of class "cimg")
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.
the window title
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 }
Run the code above in your browser using DataLab