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

NAME

6       img-png - Img, Portable Network Graphics format (png)
7

SYNOPSIS

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

DESCRIPTION

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

PNG OPTIONS

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

TRANSPARENCY

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

SEE ALSO

56       img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
57       pixmap,  img-png,  img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
58       img-tiff, img-window, img-xbm, img-xpm
59

KEYWORDS

61       image handling, png, tk
62
64       Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
65
66
67
68
69img-png                               1.4                           img-png(n)
Impressum