File: canvas_snap.man

package info (click to toggle)
tklib 0.6%2B20190108-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,008 kB
  • sloc: tcl: 75,757; sh: 5,789; ansic: 792; pascal: 359; makefile: 70; sed: 53; exp: 21
file content (40 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download | duplicates (4)
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
37
38
39
40
[comment {-*- tcl -*- doctools manpage}]
[manpage_begin canvas::snap n 1.0.1]
[keywords canvas]
[keywords image]
[keywords photo]
[keywords {print screen}]
[keywords snapshot]
[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]
[vset CATEGORY canvas]
[include ../../support/devel/doc/feedback.inc]
[manpage_end]