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

NAME

8       img-dted - Img, DTED Format (dted)
9

SYNOPSIS

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

DESCRIPTION

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

NOTE

46       This format handler must be  loaded  explicitly  with  package  require
47       img::dted.
48

SUPPORTED DTED TYPES

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

DTED OPTIONS

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

SEE ALSO

94       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
95       pixmap,  img-png,  img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
96       img-tiff, img-window, img-xbm, img-xpm
97

KEYWORDS

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