summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug79068.phpt
blob: 835b0b3670ec1e3064be1366c780b8eb95101664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #79068 (gdTransformAffineCopy() changes interpolation method)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip gd extension not available');
?>
--FILE--
<?php
$src = imagecreatetruecolor(100, 100);
imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff);
imageline($src, 10, 10, 90, 90, 0x000000);
imagesetinterpolation($src, IMG_BSPLINE);
imageaffine($src, [1, 1, 1, 1, 1, 1]);
var_dump(imagegetinterpolation($src) === IMG_BSPLINE);
?>
--EXPECT--
bool(true)