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

NAME

8       img-tga - Img, Truevision Targa Format (tga)
9

SYNOPSIS

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

DESCRIPTION

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
31       detailed 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
41              addition the value for the option is treated  as  list  and  may
42              contain  any  of  the  special  options  listed  in  section TGA
43              OPTIONS.
44

SUPPORTED TGA TYPES

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

TGA OPTIONS

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

SEE ALSO

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

KEYWORDS

87       image handling, tga, tk
88
90       Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
91
92
93
94
95img-tga                               1.4                           img-tga(n)
Impressum