imDisplay: Display Image Using tcltk Package

View source: R/imDisplay.R

imDisplayR 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
}


xRing documentation built on April 22, 2022, 5:05 p.m.

Related to imDisplay in xRing...