Subversion Repositories Applications.gtt

Rev

Rev 60 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
60 jpm 1
<html>
2
	<head>
3
		<title>Documentation</title>
4
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
5
		<link rel='stylesheet' href='style.css' />
6
	</head>
7
 
8
	<body>
9
		<div align='center'>
10
		<table cellpadding='0' cellspacing='0' id='contenu' class='round' style='width: 80%; margin-bottom: 20px'>
11
			<tr>
12
				<td class='borderhg'>&nbsp;</td>
13
				<td class='borderh'>&nbsp;</td>
14
				<td class='cornerhd'></td>
15
			</tr>
16
			<tr>
17
				<td class='borderg'>&nbsp;</td>
18
				<td><a id="top"></a><h2> Class Driver</h2><div class="description">
19
		<p>
20
			La classe abstraite <a href="Driver.html">Driver</a> rassemble toutes les méthodes permettant de dessiner sur une <a href="Image.html">Image</a>. Cette classe ne contient aucune implémentation. Celle-ci doit être effectué à l'intérieur de chaque pilote dérivant de <a href="Driver.html">Driver</a>.
21
		</p>
22
		<p>
23
			Sur une image, l'axe des abscisses rejoint l'axe des ordonnées sur le coin haut-gauche. Le coin haut-gauche de l'image a donc pour coordonnées (0, 0) et le coin bas-droite (largeur, hauteur). Par exemple, sur une image de largeur 100 et de hauteur 50, un point à 50 sur l'axe des abscisses et 25 sur l'axe des ordonnées sera au centre de l'image.
24
		</p>
25
	</div><div class="inherit">
26
			Les classes suivantes dérivent de Driver :
27
				<ul><li><a href="GDDriver.html">GDDriver</a></li></ul>
28
</div><ul class="links"><li><a href="index.html">Retourner voir la liste de toutes les classes</a></li></ul><h2>Méthodes et propriétés</h2><ul class="properties">
29
<li>
30
<span class="access">public</span> <span class="type">int</span> <a href="Driver.html#property.imageWidth"><span class="argument">$imageWidth</span></a>
31
</li>
32
<li>
33
<span class="access">public</span> <span class="type">int</span> <a href="Driver.html#property.imageHeight"><span class="argument">$imageHeight</span></a>
34
</li>
35
<li>
36
<span class="access">protected</span> <span class="type">bool</span> <a href="Driver.html#property.antiAliasing"><span class="argument">$antiAliasing</span></a> := <span class="default">FALSE</span>
37
</li>
38
<li>
39
<span class="access">protected</span> <span class="type">string</span> <a href="Driver.html#property.driverString"><span class="argument">$driverString</span></a>
40
</li>
41
<li>
42
<span class="access">protected</span> <a href="PHPFontDriver.html"><span class="type">PHPFontDriver</span></a> <a href="Driver.html#property.phpFontDriver"><span class="argument">$phpFontDriver</span></a>
43
</li>
44
<li>
45
<span class="access">protected</span> <a href="FileFontDriver.html"><span class="type">FileFontDriver</span></a> <a href="Driver.html#property.fileFontDriver"><span class="argument">$fileFontDriver</span></a>
46
</li>
47
</ul><ul class="methods">
48
<li>
49
<span class="access">public</span> <a href="Driver.html#method.__construct">__construct</a>()
50
	</li>
51
<li>
52
<span class="access">public</span> <a href="Driver.html#method.init">init</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>)
53
	</li>
54
<li>
55
<span class="access">public</span> <a href="Driver.html#method.initFromFile">initFromFile</a>(<a href="FileImage.html"><span class="type">FileImage</span></a> <span class="argument">$fileImage</span>, <span class="type">string</span> <span class="argument">$file</span>)
56
	</li>
57
<li>
58
<span class="access">public</span> <a href="Driver.html#method.setImageSize">setImageSize</a>(<span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>)
59
	</li>
60
<li>
61
<span class="access">public</span> <a href="Driver.html#method.setPosition">setPosition</a>(<span class="type">float</span> <span class="argument">$x</span>, <span class="type">float</span> <span class="argument">$y</span>)
62
	</li>
63
<li>
64
<span class="access">public</span> <a href="Driver.html#method.movePosition">movePosition</a>(<span class="type">int</span> <span class="argument">$x</span>, <span class="type">int</span> <span class="argument">$y</span>)
65
	</li>
66
<li>
67
<span class="access">public</span> <a href="Driver.html#method.setAbsPosition">setAbsPosition</a>(<span class="type">int</span> <span class="argument">$x</span>, <span class="type">int</span> <span class="argument">$y</span>)
68
	</li>
69
<li>
70
<span class="access">public</span> <a href="Driver.html#method.setSize">setSize</a>(<span class="type">float</span> <span class="argument">$w</span>, <span class="type">float</span> <span class="argument">$h</span>)
71
	</li>
72
<li>
73
<span class="access">public</span> <a href="Driver.html#method.setAbsSize">setAbsSize</a>(<span class="type">int</span> <span class="argument">$w</span>, <span class="type">int</span> <span class="argument">$h</span>)
74
	</li>
75
<li>
76
<span class="access">public</span> <span class="type">array</span> <a href="Driver.html#method.getSize">getSize</a>()
77
	</li>
78
<li>
79
<span class="access">public</span> <span class="type">mixed</span> <a href="Driver.html#method.getColor">getColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
80
	</li>
81
<li>
82
<span class="access">public</span> <a href="Driver.html#method.send">send</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>)
83
	</li>
84
<li>
85
<span class="access">public</span> <a href="Driver.html#method.get">get</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>)
86
	</li>
87
<li>
88
<span class="access">public</span> <a href="Driver.html#method.setAntiAliasing">setAntiAliasing</a>(<span class="type">bool</span> <span class="argument">$bool</span>)
89
	</li>
90
<li>
91
<span class="access">public</span> <a href="Driver.html#method.copyImage">copyImage</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$p1</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$p2</span>)
92
	</li>
93
<li>
94
<span class="access">public</span> <a href="Driver.html#method.copyResizeImage">copyResizeImage</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$d1</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$d2</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$s1</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$s2</span>, <span class="type">bool</span> <span class="argument">$resampled</span>)
95
	</li>
96
<li>
97
<span class="access">public</span> <a href="Driver.html#method.string">string</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>, <span class="type">int</span> <span class="argument">$width</span> := <span class="default">NULL</span>)
98
	</li>
99
<li>
100
<span class="access">public</span> <a href="Driver.html#method.point">point</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>)
101
	</li>
102
<li>
103
<span class="access">public</span> <a href="Driver.html#method.line">line</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Line.html"><span class="type">Line</span></a> <span class="argument">$line</span>)
104
	</li>
105
<li>
106
<span class="access">public</span> <a href="Driver.html#method.arc">arc</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>, <span class="type">float</span> <span class="argument">$from</span>, <span class="type">float</span> <span class="argument">$to</span>)
107
	</li>
108
<li>
109
<span class="access">public</span> <a href="Driver.html#method.filledArc">filledArc</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>, <span class="type">float</span> <span class="argument">$from</span>, <span class="type">float</span> <span class="argument">$to</span>)
110
	</li>
111
<li>
112
<span class="access">public</span> <a href="Driver.html#method.ellipse">ellipse</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>)
113
	</li>
114
<li>
115
<span class="access">public</span> <a href="Driver.html#method.filledEllipse">filledEllipse</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>)
116
	</li>
117
<li>
118
<span class="access">public</span> <a href="Driver.html#method.rectangle">rectangle</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Line.html"><span class="type">Line</span></a> <span class="argument">$line</span>)
119
	</li>
120
<li>
121
<span class="access">public</span> <a href="Driver.html#method.filledRectangle">filledRectangle</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Line.html"><span class="type">Line</span></a> <span class="argument">$line</span>)
122
	</li>
123
<li>
124
<span class="access">public</span> <a href="Driver.html#method.polygon">polygon</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Polygon.html"><span class="type">Polygon</span></a> <span class="argument">$polygon</span>)
125
	</li>
126
<li>
127
<span class="access">public</span> <a href="Driver.html#method.filledPolygon">filledPolygon</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Polygon.html"><span class="type">Polygon</span></a> <span class="argument">$polygon</span>)
128
	</li>
129
<li>
130
<span class="access">public</span> <span class="type">float</span> <a href="Driver.html#method.getTextWidth">getTextWidth</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
131
	</li>
132
<li>
133
<span class="access">public</span> <span class="type">float</span> <a href="Driver.html#method.getTextHeight">getTextHeight</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
134
	</li>
135
<li>
136
<span class="access">protected</span> <span class="type">bool</span> <a href="Driver.html#method.isCompatibleWithFont">isCompatibleWithFont</a>(<a href="Font.html"><span class="type">Font</span></a> <span class="argument">$font</span>)
137
	</li>
138
</ul><h2>Documentation</h2><ul class="doc">
139
<li class="property">
140
<a id="property.imageWidth"></a><span class="access">public</span> <span class="type">int</span> <a href="Driver.html#property.imageWidth"><span class="argument">$imageWidth</span></a><div class="description">
141
				La largeur de l'image gérée par le pilote.
142
			</div>
143
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
144
</li>
145
<li class="property">
146
<a id="property.imageHeight"></a><span class="access">public</span> <span class="type">int</span> <a href="Driver.html#property.imageHeight"><span class="argument">$imageHeight</span></a><div class="description">
147
				La hauteur de l'image gérée par le pilote.
148
			</div>
149
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
150
</li>
151
<li class="property">
152
<a id="property.antiAliasing"></a><span class="access">protected</span> <span class="type">bool</span> <a href="Driver.html#property.antiAliasing"><span class="argument">$antiAliasing</span></a> := <span class="default">FALSE</span><div class="description">
153
				Doit-on utiliser l'anti-aliasing sur ce dessin ?
154
			</div>
155
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
156
</li>
157
<li class="property">
158
<a id="property.driverString"></a><span class="access">protected</span> <span class="type">string</span> <a href="Driver.html#property.driverString"><span class="argument">$driverString</span></a><div class="description">
159
				Représente le type du pilote sous forme de chaîne.
160
			</div>
161
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
162
</li>
163
<li class="property">
164
<a id="property.phpFontDriver"></a><span class="access">protected</span> <a href="PHPFontDriver.html"><span class="type">PHPFontDriver</span></a> <a href="Driver.html#property.phpFontDriver"><span class="argument">$phpFontDriver</span></a><div class="description">
165
				Un objet <a href="PHPFontDriver.html">PHPFontDriver</a> gérant l'affichage et les calculs sur les polices de type <a href="PHPFont.html">PHPFont</a>.
166
			</div>
167
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
168
</li>
169
<li class="property">
170
<a id="property.fileFontDriver"></a><span class="access">protected</span> <a href="FileFontDriver.html"><span class="type">FileFontDriver</span></a> <a href="Driver.html#property.fileFontDriver"><span class="argument">$fileFontDriver</span></a><div class="description">
171
				Un objet <a href="FileFontDriver.html">FileFontDriver</a> gérant l'affichage et les calculs sur les polices de type <a href="FileFont.html">FileFont</a>.
172
			</div>
173
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
174
</li>
175
<li class="method">
176
<a id="method.__construct"></a><span class="access">public</span> <a href="Driver.html#method.__construct">__construct</a>()
177
	<div class="description">
178
				Construit le pilote.
179
				Instancie les <a href="FontDriver.html">FontDriver</a> et initialise la propriété <a href="Driver.html#property.driverString">driverString</a>.
180
			</div>
181
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
182
</li>
183
<li class="method">
184
<a id="method.init"></a><span class="access">public</span> <a href="Driver.html#method.init">init</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>)
185
	<ul class="version"><li>
186
						Disponible depuis Artichow 1.1</li></ul>
187
<div class="description">
188
				Initialise le pilote pour l'<a href="Image.html">Image</a> $image.
189
			</div>
190
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
191
</li>
192
<li class="method">
193
<a id="method.initFromFile"></a><span class="access">public</span> <a href="Driver.html#method.initFromFile">initFromFile</a>(<a href="FileImage.html"><span class="type">FileImage</span></a> <span class="argument">$fileImage</span>, <span class="type">string</span> <span class="argument">$file</span>)
194
	<ul class="version"><li>
195
						Disponible depuis Artichow 1.1</li></ul>
196
<div class="description">
197
				Initialise le pilote à partir d'une <a href="FileImage.html">FileImage</a> $fileImage.
198
				Le chemin d'accès au fichier proprement dit est contenu dans $file.
199
			</div>
200
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
201
</li>
202
<li class="method">
203
<a id="method.setImageSize"></a><span class="access">public</span> <a href="Driver.html#method.setImageSize">setImageSize</a>(<span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>)
204
	<div class="description">
205
				Change la taille de l'image gérée par le pilote pour la largeur $width et la hauteur $height.
206
			</div>
207
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
208
</li>
209
<li class="method">
210
<a id="method.setPosition"></a><span class="access">public</span> <a href="Driver.html#method.setPosition">setPosition</a>(<span class="type">float</span> <span class="argument">$x</span>, <span class="type">float</span> <span class="argument">$y</span>)
211
	<div class="description">
212
				Informe le pilote de la position de la sous-image sur l'image.
213
				Les positions X et Y sont données via les paramètres $x et $y, qui représentent une fraction de la taille de l'image.
214
			</div>
215
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
216
</li>
217
<li class="method">
218
<a id="method.movePosition"></a><span class="access">public</span> <a href="Driver.html#method.movePosition">movePosition</a>(<span class="type">int</span> <span class="argument">$x</span>, <span class="type">int</span> <span class="argument">$y</span>)
219
	<div class="description">
220
				Demande au pilote de déplacer la position de la sous-image sur l'image.
221
				$x et $y représentent respectivement les déplacements latéral et vertical de la position en pixels.
222
			</div>
223
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
224
</li>
225
<li class="method">
226
<a id="method.setAbsPosition"></a><span class="access">public</span> <a href="Driver.html#method.setAbsPosition">setAbsPosition</a>(<span class="type">int</span> <span class="argument">$x</span>, <span class="type">int</span> <span class="argument">$y</span>)
227
	<div class="description">
228
				Informe le pilote de la position de la sous-image sur l'image.
229
				Les positions X et Y sont données via les paramètres $x et $y, dont l'unité est le pixel.
230
			</div>
231
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
232
</li>
233
<li class="method">
234
<a id="method.setSize"></a><span class="access">public</span> <a href="Driver.html#method.setSize">setSize</a>(<span class="type">float</span> <span class="argument">$w</span>, <span class="type">float</span> <span class="argument">$h</span>)
235
	<div class="description">
236
				Informe le pilote de la taille de la sous-image sur l'image.
237
				Les largeur et hauteur de la sous-image sont données via les paramètres $w et $h, qui représentent une fraction de la taille de l'image.
238
			</div>
239
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
240
</li>
241
<li class="method">
242
<a id="method.setAbsSize"></a><span class="access">public</span> <a href="Driver.html#method.setAbsSize">setAbsSize</a>(<span class="type">int</span> <span class="argument">$w</span>, <span class="type">int</span> <span class="argument">$h</span>)
243
	<div class="description">
244
				Informe le pilote de la taille de la sous-image sur l'image.
245
				Les largeur et hauteur de la sous-image sont données via les paramètres $w et $h, dont l'unité est le pixel.
246
			</div>
247
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
248
</li>
249
<li class="method">
250
<a id="method.getSize"></a><span class="access">public</span> <span class="type">array</span> <a href="Driver.html#method.getSize">getSize</a>()
251
	<div class="description">
252
				Retourne la taille de la sous-image en pixels.
253
				Les valeurs sont retournées sous la forme d'un tableau, de la forme array(largeur, hauteur).
254
			</div>
255
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
256
</li>
257
<li class="method">
258
<a id="method.getColor"></a><span class="access">public</span> <span class="type">mixed</span> <a href="Driver.html#method.getColor">getColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
259
	<div class="description">
260
				Convertit un objet <a href="Color.html">Color</a> pour qu'il soit exploitable directement par les fonctions de dessins employées par le pilote.
261
				Le type de donnée renvoyée dépend du pilote.
262
			</div>
263
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
264
</li>
265
<li class="method">
266
<a id="method.send"></a><span class="access">public</span> <a href="Driver.html#method.send">send</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>)
267
	<div class="description">
268
				Construit l'image passée en paramètre et l'envoie sur la sortie standard accompagnée des en-têtes HTTP correspondants.
269
				A aucun moment vous ne devriez avoir besoin d'appeler vous-même cette méthode. Pour générez les images, utilisez <a href="Graph.html#method.draw">Graph::draw()</a>.
270
			</div>
271
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
272
</li>
273
<li class="method">
274
<a id="method.get"></a><span class="access">public</span> <a href="Driver.html#method.get">get</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>)
275
	<ul class="version"><li>
276
						Disponible depuis Artichow 1.1</li></ul>
277
<div class="description">
278
				Construit l'image passée en paramètre et la renvoie sous forme de données binaires. Vous pouvez donc la stocker dans une variable si vous voulez faire des manipulations spécifiques.
279
				A aucun moment vous ne devriez avoir besoin d'appeler vous-même cette méthode. Pour générez les images, utilisez <a href="Graph.html#method.draw">Graph::draw()</a>.
280
			</div>
281
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
282
</li>
283
<li class="method">
284
<a id="method.setAntiAliasing"></a><span class="access">public</span> <a href="Driver.html#method.setAntiAliasing">setAntiAliasing</a>(<span class="type">bool</span> <span class="argument">$bool</span>)
285
	<ul class="version"><li>
286
						Disponible depuis Artichow 1.0.9</li></ul>
287
<div class="description">
288
				Active ou désactive l'anti-aliasing lors du dessin.
289
				L'anti-aliasing permet d'avoir des graphiques plus propres mais demande plus de ressources.
290
				L'anti-aliasing n'est pas activé par défaut.
291
			<div class="see">
292
					Voir aussi :
293
					<ul><li><a href="Image.html#method.setAntiAliasing">Image::setAntiAliasing()</a></li></ul>
294
</div>
295
</div>
296
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
297
</li>
298
<li class="method">
299
<a id="method.copyImage"></a><span class="access">public</span> <a href="Driver.html#method.copyImage">copyImage</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$p1</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$p2</span>)
300
	<div class="description">
301
				Copie l'image $image vers la sous-image courante.
302
				L'image sera copiée sur la sous-image du point $p1 (coin haut-gauche) ou point $p2 (coin bas-droit).
303
				Les coordonnées de $p1 et $p2 doivent être relatives à celles de la sous-image.
304
			</div>
305
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
306
</li>
307
<li class="method">
308
<a id="method.copyResizeImage"></a><span class="access">public</span> <a href="Driver.html#method.copyResizeImage">copyResizeImage</a>(<a href="Image.html"><span class="type">Image</span></a> <span class="argument">$image</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$d1</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$d2</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$s1</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$s2</span>, <span class="type">bool</span> <span class="argument">$resampled</span>)
309
	<div class="description">
310
				Copie l'image $image vers l'image courante.
311
				L'image $image sera copiée des points $s1 (coin haut-gauche) et $s2 (coin bas-droit) vers les points $d1 (coin haut-gauche) et $d2 (coin bas-droit) de l'image courante.
312
				Si $resampled est placé à TRUE, l'image sera rééchantillonée.
313
			</div>
314
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
315
</li>
316
<li class="method">
317
<a id="method.string"></a><span class="access">public</span> <a href="Driver.html#method.string">string</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>, <span class="type">int</span> <span class="argument">$width</span> := <span class="default">NULL</span>)
318
	<div class="description">
319
				Dessine la chaîne de caractères $text à partir du point $point.
320
				Les coordonnées de $point doivent être relatives à celles de la sous-image.
321
				Le paramètre $width permet de spécifier la largeur maximale en pixels de la boîte de texte.
322
			<div class="see">
323
					Voir aussi :
324
					<ul>
325
<li><a href="Driver.html#method.getTextHeight">Driver::getTextHeight()</a></li>
326
<li><a href="Driver.html#method.getTextWidth">Driver::getTextWidth()</a></li>
327
</ul>
328
</div>
329
</div>
330
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
331
</li>
332
<li class="method">
333
<a id="method.point"></a><span class="access">public</span> <a href="Driver.html#method.point">point</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>)
334
	<div class="description">
335
				Dessine un pixel de couleur $color au point $point.
336
				Les coordonnées de $point doivent être relatives à celles de la sous-image.
337
			</div>
338
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
339
</li>
340
<li class="method">
341
<a id="method.line"></a><span class="access">public</span> <a href="Driver.html#method.line">line</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Line.html"><span class="type">Line</span></a> <span class="argument">$line</span>)
342
	<div class="description">
343
				Dessine la ligne $line de couleur $color.
344
				Les coordonnées de la ligne doivent être relatives à celles de la sous-image.
345
			</div>
346
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
347
</li>
348
<li class="method">
349
<a id="method.arc"></a><span class="access">public</span> <a href="Driver.html#method.arc">arc</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>, <span class="type">float</span> <span class="argument">$from</span>, <span class="type">float</span> <span class="argument">$to</span>)
350
	<div class="description">
351
				Dessine un arc d'ellipse de couleur $color dont les deux extrémités sont reliées au centre de l'ellipse.
352
				L'ellipse a pour centre $center et est de largeur et hauteur respectives $width et $height.
353
				L'angle de départ pour l'arc est $from et l'angle d'arrivée $to.
354
			<div class="see">
355
					Voir aussi :
356
					<ul><li><a href="Driver.html#method.filledArc">Driver::filledArc()</a></li></ul>
357
</div>
358
</div>
359
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
360
</li>
361
<li class="method">
362
<a id="method.filledArc"></a><span class="access">public</span> <a href="Driver.html#method.filledArc">filledArc</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>, <span class="type">float</span> <span class="argument">$from</span>, <span class="type">float</span> <span class="argument">$to</span>)
363
	<div class="description">
364
				Dessine un arc d'ellipse dont les deux extrémités sont reliées au centre de l'ellipse et le remplit avec la couleur ou le dégradé $background.
365
				L'ellipse a pour centre $center et est de largeur et hauteur respectives $width et $height.
366
				L'angle de départ pour l'arc est $from et l'angle d'arrivée $to.
367
			<div class="see">
368
					Voir aussi :
369
					<ul><li><a href="Driver.html#method.arc">Driver::arc()</a></li></ul>
370
</div>
371
</div>
372
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
373
</li>
374
<li class="method">
375
<a id="method.ellipse"></a><span class="access">public</span> <a href="Driver.html#method.ellipse">ellipse</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>)
376
	<div class="description">
377
				Dessine une ellipse de couleur $color, ayant pour centre $center et de largeur et hauteur respectives $width et $height.
378
				Les coordonnées de l'ellipse doivent être relatives à celles de la sous-image.
379
			<div class="see">
380
					Voir aussi :
381
					<ul><li><a href="Driver.html#method.filledEllipse">Driver::filledEllipse()</a></li></ul>
382
</div>
383
</div>
384
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
385
</li>
386
<li class="method">
387
<a id="method.filledEllipse"></a><span class="access">public</span> <a href="Driver.html#method.filledEllipse">filledEllipse</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$center</span>, <span class="type">int</span> <span class="argument">$width</span>, <span class="type">int</span> <span class="argument">$height</span>)
388
	<div class="description">
389
				Dessine et remplit une ellipse avec la couleur ou le dégradé $background. Cette ellipse a pour centre $center et est de largeur et hauteur respectives $width et $height.
390
				Les coordonnées de l'ellipse doivent être relatives à celles de la sous-image.
391
			<div class="see">
392
					Voir aussi :
393
					<ul><li><a href="Driver.html#method.ellipse">Driver::ellipse()</a></li></ul>
394
</div>
395
</div>
396
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
397
</li>
398
<li class="method">
399
<a id="method.rectangle"></a><span class="access">public</span> <a href="Driver.html#method.rectangle">rectangle</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Line.html"><span class="type">Line</span></a> <span class="argument">$line</span>)
400
	<div class="description">
401
				Dessine un rectangle de couleur $color dont la ligne $line représente la diagonale.
402
				Les coordonnées du rectangle doivent être relatives à celles de la sous-image.
403
			<div class="see">
404
					Voir aussi :
405
					<ul><li><a href="Driver.html#method.filledRectangle">Driver::filledRectangle()</a></li></ul>
406
</div>
407
</div>
408
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
409
</li>
410
<li class="method">
411
<a id="method.filledRectangle"></a><span class="access">public</span> <a href="Driver.html#method.filledRectangle">filledRectangle</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Line.html"><span class="type">Line</span></a> <span class="argument">$line</span>)
412
	<div class="description">
413
				Dessine et remplit un rectangle avec la couleur ou le dégradé $background dont la ligne $line représente la diagonale.
414
				Les coordonnées du rectangle doivent être relatives à celles de la sous-image.
415
			<div class="see">
416
					Voir aussi :
417
					<ul><li><a href="Driver.html#method.rectangle">Driver::rectangle()</a></li></ul>
418
</div>
419
</div>
420
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
421
</li>
422
<li class="method">
423
<a id="method.polygon"></a><span class="access">public</span> <a href="Driver.html#method.polygon">polygon</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>, <a href="Polygon.html"><span class="type">Polygon</span></a> <span class="argument">$polygon</span>)
424
	<div class="description">
425
				Dessine le polygone $polygon de couleur $color.
426
				Les coordonnées de chaque point du polygone doivent être relatives à celles de la sous-image.
427
			<div class="see">
428
					Voir aussi :
429
					<ul><li><a href="Driver.html#method.filledPolygon">Driver::filledPolygon()</a></li></ul>
430
</div>
431
</div>
432
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
433
</li>
434
<li class="method">
435
<a id="method.filledPolygon"></a><span class="access">public</span> <a href="Driver.html#method.filledPolygon">filledPolygon</a>(<span class="type">mixed</span> <span class="argument">$background</span>, <a href="Polygon.html"><span class="type">Polygon</span></a> <span class="argument">$polygon</span>)
436
	<div class="description">
437
				Dessine et remplit le polygone $polygon avec la couleur ou le dégradé $background.
438
				Les coordonnées de chaque point du polygone doivent être relatives à celles de la sous-image.
439
			<div class="see">
440
					Voir aussi :
441
					<ul><li><a href="Driver.html#method.polygon">Driver::polygon()</a></li></ul>
442
</div>
443
</div>
444
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
445
</li>
446
<li class="method">
447
<a id="method.getTextWidth"></a><span class="access">public</span> <span class="type">float</span> <a href="Driver.html#method.getTextWidth">getTextWidth</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
448
	<ul class="version"><li>
449
						Disponible depuis Artichow 1.1</li></ul>
450
<div class="description">
451
				Renvoie la largeur prise sur l'image par le <a href="Text.html">Text</a> $text.
452
			<div class="see">
453
					Voir aussi :
454
					<ul><li><a href="Driver.html#method.getTextHeight">Driver::getTextHeight()</a></li></ul>
455
</div>
456
</div>
457
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
458
</li>
459
<li class="method">
460
<a id="method.getTextHeight"></a><span class="access">public</span> <span class="type">float</span> <a href="Driver.html#method.getTextHeight">getTextHeight</a>(<a href="Text.html"><span class="type">Text</span></a> <span class="argument">$text</span>)
461
	<ul class="version"><li>
462
						Disponible depuis Artichow 1.1</li></ul>
463
<div class="description">
464
				Renvoie la hauteur prise sur l'image par le <a href="Text.html">Text</a> $text.
465
			<div class="see">
466
					Voir aussi :
467
					<ul><li><a href="Driver.html#method.getTextWidth">Driver::getTextWidth()</a></li></ul>
468
</div>
469
</div>
470
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
471
</li>
472
<li class="method">
473
<a id="method.isCompatibleWithFont"></a><span class="access">protected</span> <span class="type">bool</span> <a href="Driver.html#method.isCompatibleWithFont">isCompatibleWithFont</a>(<a href="Font.html"><span class="type">Font</span></a> <span class="argument">$font</span>)
474
	<ul class="version"><li>
475
						Disponible depuis Artichow 1.1</li></ul>
476
<div class="description">
477
				Renvoie TRUE si le pilote actuel est compatible avec la police $font, FALSE sinon.
478
				Chaque pilote doit définir les polices avec lesquelles il est compatible.
479
			</div>
480
<div class="description-bottom"><a href="Driver.html#top">Remonter</a></div>
481
</li>
482
</ul>
483
</td>
484
				<td class='borderd'>&nbsp;</td>
485
			</tr>
486
			<tr>
487
				<td class='cornerbg'></td>
488
				<td class='borderb'>&nbsp;</td>
489
				<td class='cornerbd'></td>
490
			</tr>
491
		</table>
492
		</div>
493
	</body>
494
</html>