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

NAME

8       img-png - Img, Portable Network Graphics format (png)
9

SYNOPSIS

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

DESCRIPTION

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

PNG OPTIONS

46       The handler provides no true options at all, but accepts pairs of  keys
47       and  values  when  writing  a  PNG file. Each pair will be written as a
48       named text chunk where the key provides the name of the chunk  and  the
49       value its contents.  For example
50
51
52                  png Author <name> Title <title> Description ...
53
54

TRANSPARENCY

56       If you want to write images to disk which contain transparency informa‐
57       tion (e.g. PNG with alpha channel) you need at least Tk 8.3.
58

SEE ALSO

60       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
61       pixmap,  img-png,  img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
62       img-tiff, img-window, img-xbm, img-xpm
63

KEYWORDS

65       image handling, png, tk
66
68       Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
69
70
71
72
73img-png                               1.4                           img-png(n)
Impressum