1img-dted(n)                           Img                          img-dted(n)
2
3
4

NAME

6       img-dted - Img, DTED Format (dted)
7

SYNOPSIS

9       package require Tk
10
11       package require img::dted  ?1.4?
12
13       image create photo ?name? ?options?
14
15

DESCRIPTION

17       The  package  img::dted  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::dted.
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 DTED Format (dted). More specifically img::dted
24       extends Tk's photo image type.
25
26       The name of the new format handler is dted.  This handler provides  new
27       additional  configuration  options.  See  section DTED 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 dted format (options -data and -file) is  detected
35              automatically.
36
37       [2]    The  format  name  dted 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 DTED
40              OPTIONS.
41

NOTE

43       This format handler must be  loaded  explicitly  with  package  require
44       img::dted.
45

SUPPORTED DTED TYPES

47        Interpret DTED terrain elevation data as a grayscale image.
48
49        List of currently supported features:
50
51        Type   |     Read      |     Write     |
52               | -file | -data | -file | -data |
53        ----------------------------------------
54        Gray   | Yes   | Yes   | No    | No   |
55
56
57

DTED OPTIONS

59       The handler provides the following options:
60
61       -verbose bool
62              If set to true, additional information about the loaded image is
63              printed to stdout. Default is false.
64
65       -nchan int
66              Specify the number of channels of the generated image.   Default
67              is 1, i.e. generate a grayscale image.
68
69       -gamma float
70              Specify  a gamma correction to be applied when mapping the input
71              data to 8-bit image values.  Default is 1.0.
72
73       -nomap bool
74              If set to true, no mapping of input values is  done.   Use  this
75              option, if your elevation file contains values in the range of 0
76              .. 255 only.  Default is false.
77
78       -min short
79              Specify the minimum pixel value to be used for mapping the input
80              data  to 8-bit image values.  Default is the minimum value found
81              in the elevation data.
82
83       -max short
84              This option is supported for reading only.
85
86              Specify the maximum pixel value to be used for mapping the input
87              data  to 8-bit image values.  Default is the maximum value found
88              in the elevation data.
89

SEE ALSO

91       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
92       pixmap,  img-png,  img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
93       img-tiff, img-window, img-xbm, img-xpm
94

KEYWORDS

96       dted, image handling, tk
97
99       Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
100
101
102
103
104img-dted                              1.4                          img-dted(n)
Impressum