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

NAME

6       img-tga - Img, Truevision Targa Format (tga)
7

SYNOPSIS

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

DESCRIPTION

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

SUPPORTED TGA TYPES

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

TGA OPTIONS

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

SEE ALSO

79       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
80       pixmap,  img-png,  img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
81       img-tiff, img-window, img-xbm, img-xpm
82

KEYWORDS

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