Unix and Linux Discussions Tagged with sun |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
15 |
70,700 |
Solaris |
|
|
|
3 |
25,762 |
Solaris |
|
|
|
29 |
17,994 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,667 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
13,870 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,292 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,487 |
Solaris |
|
|
|
4 |
4,410 |
Solaris |
|
|
|
22 |
15,419 |
Solaris |
|
|
|
33 |
36,642 |
Solaris |
|
|
|
21 |
15,331 |
Solaris |
|
|
|
40 |
26,471 |
Solaris |
|
|
|
2 |
5,999 |
Solaris |
|
|
|
8 |
3,991 |
Solaris |
|
|
|
4 |
4,257 |
Solaris |
|
|
|
50 |
20,831 |
Solaris |
|
|
|
1 |
3,041 |
Solaris |
|
|
|
5 |
5,179 |
Solaris |
|
|
|
8 |
10,201 |
Debian |
|
|
|
0 |
2,330 |
Solaris |
|
|
|
4 |
6,756 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,818 |
Solaris |
|
|
|
1 |
2,912 |
Shell Programming and Scripting |
|
|
|
0 |
4,029 |
Solaris |
|
|
|
3 |
6,237 |
Solaris |
|
|
|
2 |
3,425 |
Solaris |
|
|
|
3 |
9,170 |
Solaris |
|
|
|
4 |
19,925 |
Solaris |
|
|
|
12 |
6,587 |
Solaris |
|
|
|
1 |
5,607 |
Solaris |
|
|
|
6 |
10,227 |
Solaris |
|
|
|
7 |
17,180 |
Solaris |
|
|
|
0 |
3,623 |
Solaris BigAdmin RSS |
|
|
|
1 |
3,054 |
Solaris |
|
|
|
0 |
1,998 |
Solaris BigAdmin RSS |
|
|
|
0 |
2,289 |
Solaris BigAdmin RSS |
|
|
|
5 |
32,686 |
Solaris |
|
|
|
5 |
8,989 |
Solaris |
|
|
|
4 |
7,865 |
High Performance Computing |
|
|
|
0 |
4,916 |
Solaris BigAdmin RSS |
img-sun(3tk) img-sun(3tk)
NAME
img-sun - Img, Sun Raster Format (sun)
SYNOPSIS
package require Tk
package require img::sun ?1.3?
image create photo ?name? ?options?
DESCRIPTION
The package img::sun is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::sun.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing
raster images in the Sun Raster Format (sun). More specifically img::sun extends Tk's photo image type.
The name of the new format handler is sun. This handler provides new additional configuration options. See section SUN OPTIONS for more
detailed explanations.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in sun format (options -data and -file) is detected automatically.
[2] The format name sun is recognized by the option -format. In addition the value for the option is treated as list and may contain
any of the special options listed in section SUN OPTIONS.
SUPPORTED SUN TYPES
1-bit pixels: Black and White.
8-bit pixels: Grayscale or indexed.
24-bit pixels: True-color (RGB, each channel 8 bit).
32-bit pixels: True-color with alpha channel (RGBA, each channel 8 bit).
List of currently supported features:
Type | Read | Write |
| -file | -data | -file | -data |
----------------------------------------
1-bit | Yes | Yes | No | No |
8-bit | Yes | Yes | No | No |
24-bit | Yes | Yes | Yes | Yes |
32-bit | Yes | Yes | Yes | Yes |
All images types may be either uncompressed or run-length encoded.
SUN OPTIONS
The handler provides the following options:
-verbose bool
This option is supported for reading and writing.
If set to true, additional information about the loaded/stored image is printed to stdout. Default is false.
-compression type
This option is supported for writing only.
Set the compression mode to either none or rle. Default is rle.
-matte bool
This option is supported for reading and writing.
If set to false, a matte (alpha) channel is ignored during reading or writing. Default is true.
SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img-
window, img-xbm, img-xpm
KEYWORDS
image handling, sun, tk
COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com>
Img 1.3 img-sun(3tk)