canvas::snap - Variations on a canvas

[ Tcllib Home | Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

# canvas::snap(n) 1.0.1 tklib "Variations on a canvas"

## Name

canvas::snap - Canvas snapshot to Tk photo image

## Table Of Contents

## Synopsis

- package require Tcl 8.5
- package require Tk 8.5
- package require canvas::snap ?1.0.1?
- package require img::window

- ::canvas::snap pathName

## Description

This package provides a command to take snapshots of arbitrary canvases.

## API

::canvas::snap pathName

  Takes a snapshot of the canvas pathName. The result is the name of a new Tk photo image containing the snapshot.

  Note that this command has a side-effect. To avoid having white rectangles where other windows may overlap the canvas this command forces the toplevel window the canvas is in to the top of the stacking order.

## Keywords

canvas, image, photo, print screen, snapshot

## Copyright

Copyright © 2004 George Petasis (http://wiki.tcl.tk/1404)
Copyright © 2010 Documentation, Andreas Kupries