1--TEST--
2Testing imagecopymerge() of GD library
3--CREDITS--
4Cleston Viel Vieira de Sousa <cleston [dot] vs [at] gmail [dot] com>
5#testfest PHPSP on 2009-06-20
6--SKIPIF--
7<?php
8if (!extension_loaded("gd")) die("skip GD not present");
9?>
10--FILE--
11<?php
12
13$des = imagecreate(120, 120);
14$src = imagecreate(100, 100);
15
16imagecolorallocate($des, 50, 50, 200);
17$colorTXT_des = imagecolorallocate($des, 255, 255, 255);
18
19imagecolorallocate($src, 255, 255, 255);
20$colorTXT_src = imagecolorallocate($src, 0, 255, 255);
21
22imagestring($src, 1, 5, 5,  "A Simple Text", $colorTXT_src);
23imagestring($des, 1, 5, 5,  "Another Simple Text", $colorTXT_des);
24
25var_dump(imagecopymerge($des, $src, 20, 20, 0, 0, 50, 50, 75));
26
27
28?>
29--EXPECTF--
30bool(true)
31