1img-tga(n) Img img-tga(n)
2
3
4
5______________________________________________________________________________
6
8 img-tga - Img, Truevision Targa Format (tga)
9
11 package require Tk
12
13 package require img::tga ?1.4?
14
15 image create photo ?name? ?options?
16
17______________________________________________________________________________
18
20 The package img::tga 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::tga.
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 Truevision Targa Format (tga). More specifically
27 img::tga extends Tk's photo image type.
28
29 The name of the new format handler is tga. This handler provides new
30 additional configuration options. See section TGA 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 tga format (options -data and -file) is detected
38 automatically.
39
40 [2] The format name tga 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 TGA OPTIONS.
43
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 24-bit | Yes | Yes | Yes | Yes |
54 32-bit | Yes | Yes | Yes | Yes |
55
56 All images types may be either uncompressed (Targa-Type 2) or
57 run-length encoded (Targa-Type 10).
58
59
61 The handler provides the following options:
62
63 -verbose bool
64 This option is supported for reading and writing.
65
66 If set to true, additional information about the loaded/stored
67 image is printed to stdout. Default is false.
68
69 -compression type
70 This option is supported for writing only.
71
72 Set the compression mode to either none or rle. Default is rle.
73
74 -matte bool
75 This option is supported for reading and writing.
76
77 If set to false, a matte (alpha) channel is ignored during read‐
78 ing or writing. Default is true.
79
81 img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
82 pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
83 img-tiff, img-window, img-xbm, img-xpm
84
86 image handling, tga, tk
87
89 Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
90
91
92
93
94img-tga 1.4 img-tga(n)