mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
16 lines
403 B
PHP
16 lines
403 B
PHP
--TEST--
|
|
Bug #79068 (gdTransformAffineCopy() changes interpolation method)
|
|
--EXTENSIONS--
|
|
gd
|
|
--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)
|