/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
gd
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/gd/tests/bug73272.phpt
--TEST-- Bug #73272 (imagescale() is not affected by, but affects imagesetinterpolation()) --SKIPIF-- <?php if (!extension_loaded('gd')) die('skip gd extension not available'); ?> --FILE-- <?php require_once __DIR__ . DIRECTORY_SEPARATOR . 'func.inc'; $src = imagecreatetruecolor(100, 100); imagefilledrectangle($src, 0,0, 99,99, 0xFFFFFF); imageellipse($src, 49,49, 40,40, 0x000000); imagesetinterpolation($src, IMG_NEAREST_NEIGHBOUR); imagescale($src, 200, 200, IMG_BILINEAR_FIXED); $dst = imagerotate($src, 60, 0xFFFFFF); test_image_equals_file(__DIR__ . DIRECTORY_SEPARATOR . 'bug73272.png', $dst); ?> --EXPECT-- The images are equal.
Copyright ©2k19 -
Hexid
|
Tex7ure