1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSFML - C binding of the Simple and Fast Multimedia Library</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<!--<link rel='stylesheet' type='text/css' href="http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
</head>
<body>
<div id="banner-container">
<div id="banner">
<span id="sfml">CSFML</span>
</div>
</div>
<div id="content">
<!-- Generated by Doxygen 1.8.2 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.htm"><span>Main Page</span></a></li>
<li><a href="annotated.htm"><span>Data Structures</span></a></li>
<li class="current"><a href="files.htm"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.htm"><span>File List</span></a></li>
<li><a href="globals.htm"><span>Globals</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_6a66b7969672f1da69f458a57d2c97f9.htm">include</a></li><li class="navelem"><a class="el" href="dir_8cc999c03ab8fdf40558b1f21f869c3e.htm">SFML</a></li><li class="navelem"><a class="el" href="dir_513183d162d70e825c1ac102f07bf6df.htm">Graphics</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Image.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <<a class="el" href="Graphics_2Export_8h_source.htm">SFML/Graphics/Export.h</a>></code><br/>
<code>#include <<a class="el" href="Color_8h_source.htm">SFML/Graphics/Color.h</a>></code><br/>
<code>#include <<a class="el" href="Rect_8h_source.htm">SFML/Graphics/Rect.h</a>></code><br/>
<code>#include <<a class="el" href="Graphics_2Types_8h_source.htm">SFML/Graphics/Types.h</a>></code><br/>
<code>#include <<a class="el" href="InputStream_8h_source.htm">SFML/System/InputStream.h</a>></code><br/>
<code>#include <<a class="el" href="Vector2_8h_source.htm">SFML/System/Vector2.h</a>></code><br/>
<code>#include <stddef.h></code><br/>
</div>
<p><a href="Image_8h_source.htm">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9ca057a8098985002811d4a82b1e2131"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a9ca057a8098985002811d4a82b1e2131">sfImage_create</a> (unsigned int width, unsigned int height)</td></tr>
<tr class="memdesc:a9ca057a8098985002811d4a82b1e2131"><td class="mdescLeft"> </td><td class="mdescRight">Create an image. <a href="#a9ca057a8098985002811d4a82b1e2131"></a><br/></td></tr>
<tr class="separator:a9ca057a8098985002811d4a82b1e2131"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa5ad8d642a2e82b333876ea52cc9d34a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#aa5ad8d642a2e82b333876ea52cc9d34a">sfImage_createFromColor</a> (unsigned int width, unsigned int height, <a class="el" href="structsfColor.htm">sfColor</a> color)</td></tr>
<tr class="memdesc:aa5ad8d642a2e82b333876ea52cc9d34a"><td class="mdescLeft"> </td><td class="mdescRight">Create an image and fill it with a unique color. <a href="#aa5ad8d642a2e82b333876ea52cc9d34a"></a><br/></td></tr>
<tr class="separator:aa5ad8d642a2e82b333876ea52cc9d34a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa909565a56117ca3cbe65d83bcb4daac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#aa909565a56117ca3cbe65d83bcb4daac">sfImage_createFromPixels</a> (unsigned int width, unsigned int height, const <a class="el" href="Config_8h.htm#a845ea33920d5aaf0580c8d63486e07dc">sfUint8</a> *pixels)</td></tr>
<tr class="memdesc:aa909565a56117ca3cbe65d83bcb4daac"><td class="mdescLeft"> </td><td class="mdescRight">Create an image from an array of pixels. <a href="#aa909565a56117ca3cbe65d83bcb4daac"></a><br/></td></tr>
<tr class="separator:aa909565a56117ca3cbe65d83bcb4daac"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae864b7b88422539764d9b58851c1f7a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#ae864b7b88422539764d9b58851c1f7a3">sfImage_createFromFile</a> (const char *filename)</td></tr>
<tr class="memdesc:ae864b7b88422539764d9b58851c1f7a3"><td class="mdescLeft"> </td><td class="mdescRight">Create an image from a file on disk. <a href="#ae864b7b88422539764d9b58851c1f7a3"></a><br/></td></tr>
<tr class="separator:ae864b7b88422539764d9b58851c1f7a3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a299c153832d6a2679adfb13bee458595"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a299c153832d6a2679adfb13bee458595">sfImage_createFromMemory</a> (const void *data, size_t size)</td></tr>
<tr class="memdesc:a299c153832d6a2679adfb13bee458595"><td class="mdescLeft"> </td><td class="mdescRight">Create an image from a file in memory. <a href="#a299c153832d6a2679adfb13bee458595"></a><br/></td></tr>
<tr class="separator:a299c153832d6a2679adfb13bee458595"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8c4a88adc21825453518b06840a1c64b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a8c4a88adc21825453518b06840a1c64b">sfImage_createFromStream</a> (<a class="el" href="structsfInputStream.htm">sfInputStream</a> *stream)</td></tr>
<tr class="memdesc:a8c4a88adc21825453518b06840a1c64b"><td class="mdescLeft"> </td><td class="mdescRight">Create an image from a custom stream. <a href="#a8c4a88adc21825453518b06840a1c64b"></a><br/></td></tr>
<tr class="separator:a8c4a88adc21825453518b06840a1c64b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4bbd96006bd3b296c249a56fd93f2a14"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a4bbd96006bd3b296c249a56fd93f2a14">sfImage_copy</a> (const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image)</td></tr>
<tr class="memdesc:a4bbd96006bd3b296c249a56fd93f2a14"><td class="mdescLeft"> </td><td class="mdescRight">Copy an existing image. <a href="#a4bbd96006bd3b296c249a56fd93f2a14"></a><br/></td></tr>
<tr class="separator:a4bbd96006bd3b296c249a56fd93f2a14"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab936bab00ec39212050ae4a0d4dd51db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#ab936bab00ec39212050ae4a0d4dd51db">sfImage_destroy</a> (<a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image)</td></tr>
<tr class="memdesc:ab936bab00ec39212050ae4a0d4dd51db"><td class="mdescLeft"> </td><td class="mdescRight">Destroy an existing image. <a href="#ab936bab00ec39212050ae4a0d4dd51db"></a><br/></td></tr>
<tr class="separator:ab936bab00ec39212050ae4a0d4dd51db"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a351fa50475d8bc5150f3ac15c0daae66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Config_8h.htm#a7559f07a31bb3a4a3d865178ce4dc70b">sfBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a351fa50475d8bc5150f3ac15c0daae66">sfImage_saveToFile</a> (const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image, const char *filename)</td></tr>
<tr class="memdesc:a351fa50475d8bc5150f3ac15c0daae66"><td class="mdescLeft"> </td><td class="mdescRight">Save an image to a file on disk. <a href="#a351fa50475d8bc5150f3ac15c0daae66"></a><br/></td></tr>
<tr class="separator:a351fa50475d8bc5150f3ac15c0daae66"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3524dabdf7ff672d5fbc2f89e49e86ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="structsfVector2u.htm">sfVector2u</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a3524dabdf7ff672d5fbc2f89e49e86ca">sfImage_getSize</a> (const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image)</td></tr>
<tr class="memdesc:a3524dabdf7ff672d5fbc2f89e49e86ca"><td class="mdescLeft"> </td><td class="mdescRight">Return the size of an image. <a href="#a3524dabdf7ff672d5fbc2f89e49e86ca"></a><br/></td></tr>
<tr class="separator:a3524dabdf7ff672d5fbc2f89e49e86ca"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3bb4c1f22a7e10a996b6536921d2d24f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a3bb4c1f22a7e10a996b6536921d2d24f">sfImage_createMaskFromColor</a> (<a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image, <a class="el" href="structsfColor.htm">sfColor</a> color, <a class="el" href="Config_8h.htm#a845ea33920d5aaf0580c8d63486e07dc">sfUint8</a> alpha)</td></tr>
<tr class="memdesc:a3bb4c1f22a7e10a996b6536921d2d24f"><td class="mdescLeft"> </td><td class="mdescRight">Create a transparency mask from a specified color-key. <a href="#a3bb4c1f22a7e10a996b6536921d2d24f"></a><br/></td></tr>
<tr class="separator:a3bb4c1f22a7e10a996b6536921d2d24f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a29518c87313d7f9f93359425d10b4ca5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a29518c87313d7f9f93359425d10b4ca5">sfImage_copyImage</a> (<a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image, const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *source, unsigned int destX, unsigned int destY, <a class="el" href="structsfIntRect.htm">sfIntRect</a> sourceRect, <a class="el" href="Config_8h.htm#a7559f07a31bb3a4a3d865178ce4dc70b">sfBool</a> applyAlpha)</td></tr>
<tr class="memdesc:a29518c87313d7f9f93359425d10b4ca5"><td class="mdescLeft"> </td><td class="mdescRight">Copy pixels from an image onto another. <a href="#a29518c87313d7f9f93359425d10b4ca5"></a><br/></td></tr>
<tr class="separator:a29518c87313d7f9f93359425d10b4ca5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a516766bc953829e81f353eaa5f380d2e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a516766bc953829e81f353eaa5f380d2e">sfImage_setPixel</a> (<a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image, unsigned int x, unsigned int y, <a class="el" href="structsfColor.htm">sfColor</a> color)</td></tr>
<tr class="memdesc:a516766bc953829e81f353eaa5f380d2e"><td class="mdescLeft"> </td><td class="mdescRight">Change the color of a pixel in an image. <a href="#a516766bc953829e81f353eaa5f380d2e"></a><br/></td></tr>
<tr class="separator:a516766bc953829e81f353eaa5f380d2e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0c635a97c7a0cb92b3a16faef36c8b9f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="structsfColor.htm">sfColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#a0c635a97c7a0cb92b3a16faef36c8b9f">sfImage_getPixel</a> (const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image, unsigned int x, unsigned int y)</td></tr>
<tr class="memdesc:a0c635a97c7a0cb92b3a16faef36c8b9f"><td class="mdescLeft"> </td><td class="mdescRight">Get the color of a pixel in an image. <a href="#a0c635a97c7a0cb92b3a16faef36c8b9f"></a><br/></td></tr>
<tr class="separator:a0c635a97c7a0cb92b3a16faef36c8b9f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa74a30402377d3ab633f038913ed48e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> const <a class="el" href="Config_8h.htm#a845ea33920d5aaf0580c8d63486e07dc">sfUint8</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#aa74a30402377d3ab633f038913ed48e6">sfImage_getPixelsPtr</a> (const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image)</td></tr>
<tr class="memdesc:aa74a30402377d3ab633f038913ed48e6"><td class="mdescLeft"> </td><td class="mdescRight">Get a read-only pointer to the array of pixels of an image. <a href="#aa74a30402377d3ab633f038913ed48e6"></a><br/></td></tr>
<tr class="separator:aa74a30402377d3ab633f038913ed48e6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae80bd305661ac64e5b4312ae98724e98"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#ae80bd305661ac64e5b4312ae98724e98">sfImage_flipHorizontally</a> (<a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image)</td></tr>
<tr class="memdesc:ae80bd305661ac64e5b4312ae98724e98"><td class="mdescLeft"> </td><td class="mdescRight">Flip an image horizontally (left <-> right) <a href="#ae80bd305661ac64e5b4312ae98724e98"></a><br/></td></tr>
<tr class="separator:ae80bd305661ac64e5b4312ae98724e98"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaa8ba528449f26ba9b0a86c700f9d950"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Image_8h.htm#aaa8ba528449f26ba9b0a86c700f9d950">sfImage_flipVertically</a> (<a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> *image)</td></tr>
<tr class="memdesc:aaa8ba528449f26ba9b0a86c700f9d950"><td class="mdescLeft"> </td><td class="mdescRight">Flip an image vertically (top <-> bottom) <a href="#aaa8ba528449f26ba9b0a86c700f9d950"></a><br/></td></tr>
<tr class="separator:aaa8ba528449f26ba9b0a86c700f9d950"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a4bbd96006bd3b296c249a56fd93f2a14"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a>* sfImage_copy </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy an existing image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to copy</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Copied object </dd></dl>
</div>
</div>
<a class="anchor" id="a29518c87313d7f9f93359425d10b4ca5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void sfImage_copyImage </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>destX</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>destY</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structsfIntRect.htm">sfIntRect</a> </td>
<td class="paramname"><em>sourceRect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="Config_8h.htm#a7559f07a31bb3a4a3d865178ce4dc70b">sfBool</a> </td>
<td class="paramname"><em>applyAlpha</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy pixels from an image onto another. </p>
<p>This function does a slow pixel copy and should not be used intensively. It can be used to prepare a complex static image from several others, but if you need this kind of feature in real-time you'd better use sfRenderTexture.</p>
<p>If <em>sourceRect</em> is empty, the whole image is copied. If <em>applyAlpha</em> is set to true, the transparency of source pixels is applied. If it is false, the pixels are copied unchanged with their alpha value.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object </td></tr>
<tr><td class="paramname">source</td><td>Source image to copy </td></tr>
<tr><td class="paramname">destX</td><td>X coordinate of the destination position </td></tr>
<tr><td class="paramname">destY</td><td>Y coordinate of the destination position </td></tr>
<tr><td class="paramname">sourceRect</td><td>Sub-rectangle of the source image to copy </td></tr>
<tr><td class="paramname">applyAlpha</td><td>Should the copy take in account the source transparency? </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9ca057a8098985002811d4a82b1e2131"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a>* sfImage_create </td>
<td>(</td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>height</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an image. </p>
<p>This image is filled with black pixels.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">width</td><td>Width of the image </td></tr>
<tr><td class="paramname">height</td><td>Height of the image</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new sfImage object </dd></dl>
</div>
</div>
<a class="anchor" id="aa5ad8d642a2e82b333876ea52cc9d34a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a>* sfImage_createFromColor </td>
<td>(</td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structsfColor.htm">sfColor</a> </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an image and fill it with a unique color. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">width</td><td>Width of the image </td></tr>
<tr><td class="paramname">height</td><td>Height of the image </td></tr>
<tr><td class="paramname">color</td><td>Fill color</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new sfImage object </dd></dl>
</div>
</div>
<a class="anchor" id="ae864b7b88422539764d9b58851c1f7a3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a>* sfImage_createFromFile </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an image from a file on disk. </p>
<p>The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg. If this function fails, the image is left unchanged.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>Path of the image file to load</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new sfImage object, or NULL if it failed </dd></dl>
</div>
</div>
<a class="anchor" id="a299c153832d6a2679adfb13bee458595"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a>* sfImage_createFromMemory </td>
<td>(</td>
<td class="paramtype">const void * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an image from a file in memory. </p>
<p>The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg. If this function fails, the image is left unchanged.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>Pointer to the file data in memory </td></tr>
<tr><td class="paramname">size</td><td>Size of the data to load, in bytes</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new sfImage object, or NULL if it failed </dd></dl>
</div>
</div>
<a class="anchor" id="aa909565a56117ca3cbe65d83bcb4daac"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a>* sfImage_createFromPixels </td>
<td>(</td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="Config_8h.htm#a845ea33920d5aaf0580c8d63486e07dc">sfUint8</a> * </td>
<td class="paramname"><em>pixels</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an image from an array of pixels. </p>
<p>The <em>pixel</em> array is assumed to contain 32-bits RGBA pixels, and have the given <em>width</em> and <em>height</em>. If not, this is an undefined behaviour. If <em>pixels</em> is null, an empty image is created.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">width</td><td>Width of the image </td></tr>
<tr><td class="paramname">height</td><td>Height of the image </td></tr>
<tr><td class="paramname">pixels</td><td>Array of pixels to copy to the image</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new sfImage object </dd></dl>
</div>
</div>
<a class="anchor" id="a8c4a88adc21825453518b06840a1c64b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a>* sfImage_createFromStream </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structsfInputStream.htm">sfInputStream</a> * </td>
<td class="paramname"><em>stream</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create an image from a custom stream. </p>
<p>The supported image formats are bmp, png, tga, jpg, gif, psd, hdr and pic. Some format options are not supported, like progressive jpeg. If this function fails, the image is left unchanged.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>Source stream to read from</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new sfImage object, or NULL if it failed </dd></dl>
</div>
</div>
<a class="anchor" id="a3bb4c1f22a7e10a996b6536921d2d24f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void sfImage_createMaskFromColor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structsfColor.htm">sfColor</a> </td>
<td class="paramname"><em>color</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="Config_8h.htm#a845ea33920d5aaf0580c8d63486e07dc">sfUint8</a> </td>
<td class="paramname"><em>alpha</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a transparency mask from a specified color-key. </p>
<p>This function sets the alpha value of every pixel matching the given color to <em>alpha</em> (0 by default), so that they become transparent.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object </td></tr>
<tr><td class="paramname">color</td><td>Color to make transparent </td></tr>
<tr><td class="paramname">alpha</td><td>Alpha value to assign to transparent pixels </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab936bab00ec39212050ae4a0d4dd51db"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void sfImage_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy an existing image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to delete </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae80bd305661ac64e5b4312ae98724e98"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void sfImage_flipHorizontally </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Flip an image horizontally (left <-> right) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aaa8ba528449f26ba9b0a86c700f9d950"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void sfImage_flipVertically </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Flip an image vertically (top <-> bottom) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0c635a97c7a0cb92b3a16faef36c8b9f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="structsfColor.htm">sfColor</a> sfImage_getPixel </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the color of a pixel in an image. </p>
<p>This function doesn't check the validity of the pixel coordinates, using out-of-range values will result in an undefined behaviour.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object </td></tr>
<tr><td class="paramname">x</td><td>X coordinate of pixel to get </td></tr>
<tr><td class="paramname">y</td><td>Y coordinate of pixel to get</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Color of the pixel at coordinates (x, y) </dd></dl>
</div>
</div>
<a class="anchor" id="aa74a30402377d3ab633f038913ed48e6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> const <a class="el" href="Config_8h.htm#a845ea33920d5aaf0580c8d63486e07dc">sfUint8</a>* sfImage_getPixelsPtr </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a read-only pointer to the array of pixels of an image. </p>
<p>The returned value points to an array of RGBA pixels made of 8 bits integers components. The size of the array is getWidth() * getHeight() * 4. Warning: the returned pointer may become invalid if you modify the image, so you should never store it for too long. If the image is empty, a null pointer is returned.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Read-only pointer to the array of pixels </dd></dl>
</div>
</div>
<a class="anchor" id="a3524dabdf7ff672d5fbc2f89e49e86ca"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="structsfVector2u.htm">sfVector2u</a> sfImage_getSize </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the size of an image. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Size in pixels </dd></dl>
</div>
</div>
<a class="anchor" id="a351fa50475d8bc5150f3ac15c0daae66"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> <a class="el" href="Config_8h.htm#a7559f07a31bb3a4a3d865178ce4dc70b">sfBool</a> sfImage_saveToFile </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Save an image to a file on disk. </p>
<p>The format of the image is automatically deduced from the extension. The supported image formats are bmp, png, tga and jpg. The destination file is overwritten if it already exists. This function fails if the image is empty.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object </td></tr>
<tr><td class="paramname">filename</td><td>Path of the file to save</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>sfTrue if saving was successful </dd></dl>
</div>
</div>
<a class="anchor" id="a516766bc953829e81f353eaa5f380d2e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Graphics_2Export_8h.htm#afe51e93179eaff14e83568c716e633c0">CSFML_GRAPHICS_API</a> void sfImage_setPixel </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Graphics_2Types_8h.htm#a26d2f025681acd41ab00ead3b5aa23eb">sfImage</a> * </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structsfColor.htm">sfColor</a> </td>
<td class="paramname"><em>color</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Change the color of a pixel in an image. </p>
<p>This function doesn't check the validity of the pixel coordinates, using out-of-range values will result in an undefined behaviour.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image object </td></tr>
<tr><td class="paramname">x</td><td>X coordinate of pixel to change </td></tr>
<tr><td class="paramname">y</td><td>Y coordinate of pixel to change </td></tr>
<tr><td class="paramname">color</td><td>New color of the pixel </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
Copyright � Laurent Gomila ::
Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> ::
</div>
</div>
</body>
</html>
|