~ubuntu-branches/ubuntu/wily/python-imaging/wily

« back to all changes in this revision

Viewing changes to docs/pythondoc-PIL.ImageTk.html

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130131204920-b5zshy6vgfvdionl
Tags: 1.1.7+1.7.8-1ubuntu1
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
 
2
<html>
 
3
<head>
 
4
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
 
5
<title>The PIL.ImageTk Module</title>
 
6
<link rel='stylesheet' href='effbot.css' type='text/css' />
 
7
</head>
 
8
<body>
 
9
<h1>The PIL.ImageTk Module</h1>
 
10
<p>The <b>ImageTk</b> module contains support to create and modify
 
11
Tkinter <b>BitmapImage</b> and <b>PhotoImage</b> objects.
 
12
</p><p>
 
13
For examples, see the demo programs in the <i>Scripts</i>
 
14
directory.
 
15
</p><h2>Module Contents</h2>
 
16
<dl>
 
17
<dt><b>BitmapImage(image=None, **options)</b> (class) [<a href='#PIL.ImageTk.BitmapImage-class'>#</a>]</dt>
 
18
<dd>
 
19
<p>Create a Tkinter-compatible bitmap image.</p>
 
20
<p>For more information about this class, see <a href='#PIL.ImageTk.BitmapImage-class'><i>The BitmapImage Class</i></a>.</p>
 
21
</dd>
 
22
<dt><a id='PIL.ImageTk.getimage-function' name='PIL.ImageTk.getimage-function'><b>getimage(photo)</b></a> [<a href='#PIL.ImageTk.getimage-function'>#</a>]</dt>
 
23
<dd>
 
24
</dd>
 
25
<dt><b>PhotoImage(image=None, size=None, **options)</b> (class) [<a href='#PIL.ImageTk.PhotoImage-class'>#</a>]</dt>
 
26
<dd>
 
27
<p>Creates a Tkinter-compatible photo image.</p>
 
28
<p>For more information about this class, see <a href='#PIL.ImageTk.PhotoImage-class'><i>The PhotoImage Class</i></a>.</p>
 
29
</dd>
 
30
</dl>
 
31
<h2><a id='PIL.ImageTk.BitmapImage-class' name='PIL.ImageTk.BitmapImage-class'>The BitmapImage Class</a></h2>
 
32
<dl>
 
33
<dt><b>BitmapImage(image=None, **options)</b> (class) [<a href='#PIL.ImageTk.BitmapImage-class'>#</a>]</dt>
 
34
<dd>
 
35
</dd>
 
36
<dt><a id='PIL.ImageTk.BitmapImage.__init__-method' name='PIL.ImageTk.BitmapImage.__init__-method'><b>__init__(image=None, **options)</b></a> [<a href='#PIL.ImageTk.BitmapImage.__init__-method'>#</a>]</dt>
 
37
<dd>
 
38
<p>Create a Tkinter-compatible bitmap image.
 
39
</p><p>
 
40
The given image must have mode "1".  Pixels having value 0 are
 
41
treated as transparent.  Options, if any, are passed on to
 
42
Tkinter.  The most commonly used option is <b>foreground</b>,
 
43
which is used to specify the colour for the non-transparent
 
44
parts.  See the Tkinter documentation for information on how to
 
45
specify colours.
 
46
 
 
47
</p><dl>
 
48
<dt><i>image</i></dt>
 
49
<dd>
 
50
</dd>
 
51
</dl><br />
 
52
</dd>
 
53
<dt><a id='PIL.ImageTk.BitmapImage.__str__-method' name='PIL.ImageTk.BitmapImage.__str__-method'><b>__str__()</b></a> [<a href='#PIL.ImageTk.BitmapImage.__str__-method'>#</a>]</dt>
 
54
<dd>
 
55
<dl>
 
56
<dt>Returns:</dt>
 
57
<dd>
 
58
</dd>
 
59
</dl><br />
 
60
</dd>
 
61
<dt><a id='PIL.ImageTk.BitmapImage.height-method' name='PIL.ImageTk.BitmapImage.height-method'><b>height()</b></a> [<a href='#PIL.ImageTk.BitmapImage.height-method'>#</a>]</dt>
 
62
<dd>
 
63
<dl>
 
64
<dt>Returns:</dt>
 
65
<dd>
 
66
</dd>
 
67
</dl><br />
 
68
</dd>
 
69
<dt><a id='PIL.ImageTk.BitmapImage.width-method' name='PIL.ImageTk.BitmapImage.width-method'><b>width()</b></a> [<a href='#PIL.ImageTk.BitmapImage.width-method'>#</a>]</dt>
 
70
<dd>
 
71
<dl>
 
72
<dt>Returns:</dt>
 
73
<dd>
 
74
</dd>
 
75
</dl><br />
 
76
</dd>
 
77
</dl>
 
78
<h2><a id='PIL.ImageTk.PhotoImage-class' name='PIL.ImageTk.PhotoImage-class'>The PhotoImage Class</a></h2>
 
79
<dl>
 
80
<dt><b>PhotoImage(image=None, size=None, **options)</b> (class) [<a href='#PIL.ImageTk.PhotoImage-class'>#</a>]</dt>
 
81
<dd>
 
82
</dd>
 
83
<dt><a id='PIL.ImageTk.PhotoImage.__init__-method' name='PIL.ImageTk.PhotoImage.__init__-method'><b>__init__(image=None, size=None, **options)</b></a> [<a href='#PIL.ImageTk.PhotoImage.__init__-method'>#</a>]</dt>
 
84
<dd>
 
85
<p>Create a photo image object. The constructor takes either
 
86
a PIL image, or a mode and a size.  Alternatively, you can
 
87
use the <b>file</b> or <b>data</b> options to initialize
 
88
the photo image object.
 
89
</p><p>
 
90
</p><dl>
 
91
<dt><i>image</i></dt>
 
92
<dd>
 
93
</dd>
 
94
<dt><i>size</i></dt>
 
95
<dd>
 
96
</dd>
 
97
<dt><i>file=</i></dt>
 
98
<dd>
 
99
</dd>
 
100
<dt><i>data=</i></dt>
 
101
<dd>
 
102
</dd>
 
103
</dl><br />
 
104
</dd>
 
105
<dt><a id='PIL.ImageTk.PhotoImage.__str__-method' name='PIL.ImageTk.PhotoImage.__str__-method'><b>__str__()</b></a> [<a href='#PIL.ImageTk.PhotoImage.__str__-method'>#</a>]</dt>
 
106
<dd>
 
107
<dl>
 
108
<dt>Returns:</dt>
 
109
<dd>
 
110
</dd>
 
111
</dl><br />
 
112
</dd>
 
113
<dt><a id='PIL.ImageTk.PhotoImage.height-method' name='PIL.ImageTk.PhotoImage.height-method'><b>height()</b></a> [<a href='#PIL.ImageTk.PhotoImage.height-method'>#</a>]</dt>
 
114
<dd>
 
115
<dl>
 
116
<dt>Returns:</dt>
 
117
<dd>
 
118
</dd>
 
119
</dl><br />
 
120
</dd>
 
121
<dt><a id='PIL.ImageTk.PhotoImage.paste-method' name='PIL.ImageTk.PhotoImage.paste-method'><b>paste(im, box=None)</b></a> [<a href='#PIL.ImageTk.PhotoImage.paste-method'>#</a>]</dt>
 
122
<dd>
 
123
<dl>
 
124
<dt><i>im</i></dt>
 
125
<dd>
 
126
</dd>
 
127
<dt><i>box</i></dt>
 
128
<dd>
 
129
</dd>
 
130
</dl><br />
 
131
</dd>
 
132
<dt><a id='PIL.ImageTk.PhotoImage.width-method' name='PIL.ImageTk.PhotoImage.width-method'><b>width()</b></a> [<a href='#PIL.ImageTk.PhotoImage.width-method'>#</a>]</dt>
 
133
<dd>
 
134
<dl>
 
135
<dt>Returns:</dt>
 
136
<dd>
 
137
</dd>
 
138
</dl><br />
 
139
</dd>
 
140
</dl>
 
141
</body></html>