1img-sun(n) Img img-sun(n)
2
3
4
6 img-sun - Img, Sun Raster Format (sun)
7
9 package require Tk
10
11 package require img::sun ?1.4?
12
13 image create photo ?name? ?options?
14
15
17 The package img::sun 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::sun.
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 Sun Raster Format (sun). More specifically
24 img::sun extends Tk's photo image type.
25
26 The name of the new format handler is sun. This handler provides new
27 additional configuration options. See section SUN 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 sun format (options -data and -file) is detected
35 automatically.
36
37 [2] The format name sun 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 SUN
40 OPTIONS.
41
43 1-bit pixels: Black and White.
44 8-bit pixels: Grayscale or indexed.
45 24-bit pixels: True-color (RGB, each channel 8 bit).
46 32-bit pixels: True-color with alpha channel (RGBA, each channel 8 bit).
47
48 List of currently supported features:
49
50 Type | Read | Write |
51 | -file | -data | -file | -data |
52 ----------------------------------------
53 1-bit | Yes | Yes | No | No |
54 8-bit | Yes | Yes | No | No |
55 24-bit | Yes | Yes | Yes | Yes |
56 32-bit | Yes | Yes | Yes | Yes |
57
58 All images types may be either uncompressed or run-length encoded.
59
60
62 The handler provides the following options:
63
64 -verbose bool
65 This option is supported for reading and writing.
66
67 If set to true, additional information about the loaded/stored
68 image is printed to stdout. Default is false.
69
70 -compression type
71 This option is supported for writing only.
72
73 Set the compression mode to either none or rle. Default is rle.
74
75 -matte bool
76 This option is supported for reading and writing.
77
78 If set to false, a matte (alpha) channel is ignored during read‐
79 ing or writing. Default is true.
80
82 img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
83 pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
84 img-tiff, img-window, img-xbm, img-xpm
85
87 image handling, sun, tk
88
90 Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
91
92
93
94
95img-sun 1.4 img-sun(n)