rp.clearlines: Remove lines from an rpanel image

View source: R/image.r

rp.clearlinesR Documentation

Remove lines from an rpanel image

Description

This function removes line(s) from an rpanel image widget: rp.clearlines removes all the lines from an image while rp.deleteline deletes only a given line.

Usage

rp.clearlines(panel, imagename)

Arguments

panel

the panel which contains the image. This may be passed as a panelname string or the panel object itself.

imagename

the name of the image within the panel.

Value

If the parameter panel is the panelname string the same string is returned. If the panel object is used, the altered panel is assigned to both the calling level and panel's environment level.

Note

In version 1.1 "id" has been renamed "name" to be consistent with the rest of rpanel.

References

rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.

See Also

rp.image,rp.line

Examples

## Not run: 
   panel <- rp.control()
   image.file <- file.path(system.file(package = "rpanel"), "images", "gulllmks.gif")
   panel <- rp.image(panel, image.file, imagename="gulls.image")
   rp.line(panel, imagename=gulls.image, 10, 10, 100, 100, color = "green")
   rp.line(panel, imagename=gulls.image, 100, 100, 100, 10, color = "blue")
   rp.clearlines(panel, imagename=gulls.image)

## End(Not run)

rpanel documentation built on Feb. 16, 2023, 10:37 p.m.

Related to rp.clearlines in rpanel...