1img-ico(n)                            Img                           img-ico(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       img-ico - Img, Windows Icon Format (ico)
9

SYNOPSIS

11       package require Tk
12
13       package require img::ico  ?1.4?
14
15       image create photo ?name? ?options?
16
17______________________________________________________________________________
18

DESCRIPTION

20       The  package  img::ico  is  a sub-package of Img. It can be loaded as a
21       part of the complete Img support, via package require Img,  or  on  its
22       own, via package require img::ico.
23
24       Like  all packages of Img it does not provide new commands, but extends
25       the existing Tk command image so  that  it  supports  files  containing
26       raster  images  in  the  Windows  Icon  Format (ico). More specifically
27       img::ico extends Tk's photo image type.
28
29       The name of the new format handler is ico.  This handler  provides  new
30       additional  configuration options. See section ICO OPTIONS for more de‐
31       tailed explanations.
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 ico format (options -data and -file)  is  detected
38              automatically.
39
40       [2]    The format name ico is recognized by the option -format.  In ad‐
41              dition the value for the option is treated as list and may  con‐
42              tain any of the special options listed in section ICO OPTIONS.
43

SUPPORTED ICO TYPES

45                1-bit pixels: Black and White.
46                4-bit pixels: Grayscale or indexed.
47                8-bit pixels: True-color (RGB, each channel 8 bit).
48
49               List of currently supported features:
50
51               Type   |     Read      |     Write     |
52                      | -file | -data | -file | -data |
53               ----------------------------------------
54                1-bit | Yes   | Yes   | No    | No    |
55                4-bit | Yes   | Yes   | No    | No    |
56                8-bit | Yes   | Yes   | Yes   | Yes   |
57
58

ICO OPTIONS

60       The handler provides the following options:
61
62       -verbose bool
63              This option is supported for reading and writing.
64
65              If  set  to true, additional information about the loaded/stored
66              image is printed to stdout. Default is false.
67
68       -index n
69              This option is supported for reading only.
70
71              Read the n'th image. The first image is at index 0.  Default  is
72              0.
73

SEE ALSO

75       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
76       pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi,  img-sun,  img-tga,
77       img-tiff, img-window, img-xbm, img-xpm
78

KEYWORDS

80       ico, image handling, tk
81
83       Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
84
85
86
87
88img-ico                               1.4                           img-ico(n)
Impressum