1img-window(n)                         Img                        img-window(n)
2
3
4

NAME

6       img-window - Img, Tk Windows (window)
7

SYNOPSIS

9       package require Tk
10
11       package require img::window  ?1.3?
12
13       image create photo ?name? ?options?
14
15

DESCRIPTION

17       The  package img::window is a sub-package of Img. It can be loaded as a
18       part of the complete Img support, via package require Img,  or  on  its
19       own, via package require img::window.
20
21       Like  all packages of Img it does not provide new commands, but extends
22       the existing Tk command image.  More specifically  img::window  extends
23       Tk's photo image type.
24
25       The name of the new format handler is window.
26
27       This  handler  does not provide additional configuration options.  This
28       handler is special. Instead of reading or writing  image  data  from  a
29       file  or  string  it allows the embedding of a Tk widget into the photo
30       image. In other words, it takes a snapshot of the contents of a Tk win‐
31       dow.
32
33       All of the above means that in a call like
34
35       image create photo ?name? ?options?
36
37       [1]    Image data in window format (option -data) is detected automati‐
38              cally. Image data is considered to be in the  window  format  if
39              the  value  given  to option -data is the name of an existing Tk
40              window.
41
42              Note that the standard option -file is  not  supported  by  this
43              handler.
44
45       [2]    The format name window is recognized by the option -format.
46

SEE ALSO

48       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
49       pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi,  img-sun,  img-tga,
50       img-tiff, img-window, img-xbm, img-xpm
51

KEYWORDS

53       image handling, tk, window
54
56       Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.net>
57
58
59
60
61img-window                            1.3                        img-window(n)
Impressum