--TEST-- imagecopyresized --SKIPIF-- --FILE-- TC: ok\n"; $src_tc = imagecreate(19,19); $white = imagecolorallocate($src_tc, 255,255,255); $red = imagecolorallocate($src_tc, 255,0,0); imagefilledrectangle($src_tc, 0,0,4,4, $red); imagefilledrectangle($src_tc, 14,0,18,4, $red); imagefilledrectangle($src_tc, 0,14,4,18, $red); imagefilledrectangle($src_tc, 14,14,18,18, $red); imagefilledrectangle($src_tc, 7,7,11,11, $red); $dst_tc = imagecreatetruecolor(38,38); imagecopyresized($dst_tc, $src_tc, 0,0, 0,0, imagesx($dst_tc), imagesy($dst_tc), 19,19); if (!check_doublesize($dst_tc)) exit("2 failed\n"); echo "P->TC: ok\n"; $src_tc = imagecreate(19,19); $white = imagecolorallocate($src_tc, 255,255,255); $red = imagecolorallocate($src_tc, 255,0,0); imagefilledrectangle($src_tc, 0,0,4,4, $red); imagefilledrectangle($src_tc, 14,0,18,4, $red); imagefilledrectangle($src_tc, 0,14,4,18, $red); imagefilledrectangle($src_tc, 14,14,18,18, $red); imagefilledrectangle($src_tc, 7,7,11,11, $red); $dst_tc = imagecreate(38,38); $white = imagecolorallocate($src_tc, 255,255,255); $red = imagecolorallocate($src_tc, 255,0,0); imagecopyresized($dst_tc, $src_tc, 0,0, 0,0, imagesx($dst_tc), imagesy($dst_tc), 19,19); if (!check_doublesize($dst_tc)) exit("3 failed\n"); echo "P->P: ok\n"; ?> --EXPECT-- TC->TC: ok P->TC: ok P->P: ok