Annotation of embedaddon/php/ext/gd/tests/imagecopymerge_basic.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Testing imagecopymerge() of GD library
                      3: --CREDITS--
                      4: Cleston Viel Vieira de Sousa <cleston [dot] vs [at] gmail [dot] com>
                      5: #testfest PHPSP on 2009-06-20
                      6: --SKIPIF--
                      7: <?php 
                      8: if (!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: 
                     16: imagecolorallocate($des, 50, 50, 200);
                     17: $colorTXT_des = imagecolorallocate($des, 255, 255, 255);
                     18: 
                     19: imagecolorallocate($src, 255, 255, 255);
                     20: $colorTXT_src = imagecolorallocate($src, 0, 255, 255);
                     21: 
                     22: imagestring($src, 1, 5, 5,  "A Simple Text", $colorTXT_src);
                     23: imagestring($des, 1, 5, 5,  "Another Simple Text", $colorTXT_des);
                     24: 
                     25: var_dump(imagecopymerge($des, $src, 20, 20, 0, 0, 50, 50, 75));
                     26: 
                     27: 
                     28: ?>
                     29: --EXPECTF--
                     30: bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>