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

NAME

8       img-sun - Img, Sun Raster Format (sun)
9

SYNOPSIS

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

DESCRIPTION

20       The  package  img::sun  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::sun.
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  Sun  Raster  Format  (sun).  More specifically
27       img::sun extends Tk's photo image type.
28
29       The name of the new format handler is sun.  This handler  provides  new
30       additional  configuration options. See section SUN 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 sun format (options -data and -file)  is  detected
38              automatically.
39
40       [2]    The format name sun 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 SUN OPTIONS.
43

SUPPORTED SUN TYPES

45                1-bit pixels: Black and White.
46                8-bit pixels: Grayscale or indexed.
47               24-bit pixels: True-color (RGB, each channel 8 bit).
48               32-bit pixels: True-color with alpha channel (RGBA, each channel 8 bit).
49
50               List of currently supported features:
51
52               Type   |     Read      |     Write     |
53                      | -file | -data | -file | -data |
54               ----------------------------------------
55                1-bit | Yes   | Yes   | No    | No    |
56                8-bit | Yes   | Yes   | No    | No    |
57               24-bit | Yes   | Yes   | Yes   | Yes   |
58               32-bit | Yes   | Yes   | Yes   | Yes   |
59
60               All images types may be either uncompressed or run-length encoded.
61
62

SUN OPTIONS

64       The handler provides the following options:
65
66       -verbose bool
67              This option is supported for reading and writing.
68
69              If  set  to true, additional information about the loaded/stored
70              image is printed to stdout. Default is false.
71
72       -compression type
73              This option is supported for writing only.
74
75              Set the compression mode to either none or rle.  Default is rle.
76
77       -matte bool
78              This option is supported for reading and writing.
79
80              If set to false, a matte (alpha) channel is ignored during read‐
81              ing or writing. Default is true.
82

SEE ALSO

84       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
85       pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi,  img-sun,  img-tga,
86       img-tiff, img-window, img-xbm, img-xpm
87

KEYWORDS

89       image handling, sun, tk
90
92       Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
93
94
95
96
97img-sun                               1.4                           img-sun(n)
Impressum