1img-ico(n) Img img-ico(n)
2
3
4
6 img-ico - Img, Windows Icon Format (ico)
7
9 package require Tk
10
11 package require img::ico ?1.4?
12
13 image create photo ?name? ?options?
14
15
17 The package img::ico 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::ico.
20
21 Like all packages of Img it does not provide new commands, but extends
22 the existing Tk command image so that it supports files containing
23 raster images in the Windows Icon Format (ico). More specifically
24 img::ico extends Tk's photo image type.
25
26 The name of the new format handler is ico. This handler provides new
27 additional configuration options. See section ICO OPTIONS for more
28 detailed explanations.
29
30 All of the above means that in a call like
31
32 image create photo ?name? ?options?
33
34 [1] Image data in ico format (options -data and -file) is detected
35 automatically.
36
37 [2] The format name ico is recognized by the option -format. In
38 addition the value for the option is treated as list and may
39 contain any of the special options listed in section ICO
40 OPTIONS.
41
43 1-bit pixels: Black and White.
44 4-bit pixels: Grayscale or indexed.
45 8-bit pixels: True-color (RGB, each channel 8 bit).
46
47 List of currently supported features:
48
49 Type | Read | Write |
50 | -file | -data | -file | -data |
51 ----------------------------------------
52 1-bit | Yes | Yes | No | No |
53 4-bit | Yes | Yes | No | No |
54 8-bit | Yes | Yes | Yes | Yes |
55
56
58 The handler provides the following options:
59
60 -verbose bool
61 This option is supported for reading and writing.
62
63 If set to true, additional information about the loaded/stored
64 image is printed to stdout. Default is false.
65
66 -index n
67 This option is supported for reading only.
68
69 Read the n'th image. The first image is at index 0. Default is
70 0.
71
73 img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
74 pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
75 img-tiff, img-window, img-xbm, img-xpm
76
78 ico, image handling, tk
79
81 Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
82
83
84
85
86img-ico 1.4 img-ico(n)