File: canvas_snap.man

package info (click to toggle)
tklib 0.6-1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 16,012 kB
  • sloc: tcl: 65,204; sh: 6,870; ansic: 792; pascal: 359; makefile: 73; exp: 21; sed: 16
file content (36 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[comment {-*- tcl -*- doctools manpage}]
[manpage_begin canvas::snap n 1.0.1]
[copyright {2004 George Petasis (http://wiki.tcl.tk/1404)}]
[copyright {2010 Documentation, Andreas Kupries}]
[moddesc   {Variations on a canvas}]
[titledesc {Canvas snapshot to Tk photo image}]
[require Tcl 8.5]
[require Tk 8.5]
[require canvas::snap [opt 1.0.1]]
[require img::window]
[description]

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

[section API]

[list_begin definitions]

[call [cmd ::canvas::snap] [arg pathName]]

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

[para]

[emph 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.

[list_end]

[keywords canvas photo image snapshot {print screen}]
[manpage_end]