xref: /php-src/ext/gd/tests/bug39366.phpt (revision 7f8adf8a)
1--TEST--
2Bug #39366 (imagerotate does not respect alpha with angles>45)
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7
8$im = imagecreatetruecolor(10,10);
9imagealphablending($im, 0);
10imagefilledrectangle($im, 0,0, 8,8, 0x32FF0000);
11$rotate = imagerotate($im, 180, 0);
12imagecolortransparent($rotate,0);
13imagesavealpha($rotate, true);
14$c = imagecolorat($rotate,5,5);
15printf("%X\n", $c);
16?>
17--EXPECT--
1832FF0000
19