1img-sgi(n) Img img-sgi(n)
2
3
4
5______________________________________________________________________________
6
8 img-sgi - Img, SGI Native Format (sgi)
9
11 package require Tk
12
13 package require img::sgi ?1.4?
14
15 image create photo ?name? ?options?
16
17______________________________________________________________________________
18
20 The package img::sgi 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::sgi.
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 SGI Native Format (sgi). More specifically
27 img::sgi extends Tk's photo image type.
28
29 The name of the new format handler is sgi. This handler provides new
30 additional configuration options. See section SGI OPTIONS for more
31 detailed 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 sgi format (options -data and -file) is detected
38 automatically.
39
40 [2] The format name sgi is recognized by the option -format. In
41 addition the value for the option is treated as list and may
42 contain any of the special options listed in section SGI
43 OPTIONS.
44
46 24-bit pixels: True-color (RGB, each channel 8 bit).
47 32-bit pixels: True-color with alpha channel (RGBA, each channel 8 bit).
48 48-bit pixels: True-color (RGB, each channel 16 bit).
49 64-bit pixels: True-color with alpha channel (RGBA, each channel 16 bit).
50
51 List of currently supported features:
52
53 Type | Read | Write |
54 | -file | -data | -file | -data |
55 ----------------------------------------
56 24-bit | Yes | Yes* | Yes | Yes* |
57 32-bit | Yes | Yes* | Yes | Yes* |
58 48-bit | Yes | Yes* | No | No |
59 64-bit | Yes | Yes* | No | No |
60
61 *: Implemented by reading/writing from/to a temporary file. This will
62 be slow for larger images.
63
64 All images types may be either uncompressed or run-length encoded.
65
66
68 The handler provides the following options:
69
70 -verbose bool
71 This option is supported for reading and writing.
72
73 If set to true, additional information about the loaded/stored
74 image is printed to stdout. Default is false.
75
76 -compression type
77 This option is supported for writing only.
78
79 Set the compression mode to either none or rle. Default is rle.
80
81 -matte bool
82 This option is supported for reading and writing.
83
84 If set to false, a matte (alpha) channel is ignored during read‐
85 ing or writing. Default is true.
86
88 img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
89 pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
90 img-tiff, img-window, img-xbm, img-xpm
91
93 image handling, sgi, tk
94
96 Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
97
98
99
100
101img-sgi 1.4 img-sgi(n)