Home
last modified time | relevance | path

Searched refs:img (Results 1 – 25 of 37) sorted by relevance

12

/PHP-7.4/ext/gd/tests/
H A Dimagecolourstotal_basic.phpt25 $img = imagecreate( 50, 50 );
26 var_dump( imagecolorstotal( $img ) );
28 var_dump( imagecolorstotal( $img ));
29 $bg = imagecolorallocate( $img, 255, 0, 0 );
30 $bg = imagecolorallocate( $img, 0, 0, 255 );
31 var_dump( imagecolorstotal( $img ));
32 imagedestroy( $img );
35 $img = imagecreatetruecolor( 50, 50 );
36 var_dump( imagecolorstotal( $img ) );
38 var_dump( imagecolorstotal( $img ) );
[all …]
H A Dbug61221.phpt11 $img = imagecreatetruecolor($imagew, $imageh);
12 $blacktransparent = imagecolorallocatealpha($img, 0, 0, 0, 127);
13 $redsolid = imagecolorallocate($img, 255, 0, 0);
14 imagefill($img, 0, 0, $blacktransparent);
15 imageline($img, $imagew / 2, 0, $imagew / 2, $imageh - 1, $redsolid);
16 imageline($img, 0, $imageh / 2, $imagew - 1, $imageh / 2, $redsolid);
17 imagegammacorrect($img, 1, 1);
18 $color = imagecolorat($img, 0, 0);
20 imagedestroy($img);
H A Dbug53156.phpt14 global $img, $black, $red;
16 echo (imagecolorat($img, $x, $y) === $black) ? '+' : '-';
17 imagesetpixel($img, $x, $y, $red);
22 global $img, $black;
25 imagerectangle($img, $x1, $y1, $x2, $y2, $black);
35 $img = imagecreate(110, 210);
36 $bgnd = imagecolorallocate($img, 255, 255, 255);
37 $black = imagecolorallocate($img, 0, 0, 0);
38 $red = imagecolorallocate($img, 255, 0, 0);
44 imagesetthickness($img, 4);
[all …]
H A Dimagescale_preserve_ratio.phpt10 $img = imagecreatetruecolor ( 256, 384);
12 $thumbnail = imagescale($img, 64, -1, IMG_BICUBIC);
16 $thumbnail = imagescale($img, -1, 64, IMG_BICUBIC);
20 $img = imagecreatetruecolor ( 384, 256);
22 $thumbnail = imagescale($img, 64, -1, IMG_BICUBIC);
26 $thumbnail = imagescale($img, -1, 64, IMG_BICUBIC);
30 $img = imagecreatetruecolor ( 256, 256);
32 $thumbnail = imagescale($img, 64, -1, IMG_BICUBIC);
36 $thumbnail = imagescale($img, -1, 64, IMG_BICUBIC);
H A Dbug72482.phpt9 $img = imagecreatetruecolor(13, 1007);
10 imageantialias($img, true);
11 imageline($img, 0, 0, 1073745919, 1073745919, 4096);
13 $img = imagecreatetruecolor(100, 100);
14 imageantialias($img, true);
15 imageline($img, 1094795585, 0, 2147483647, 255, 0xff);
H A Dimagecolorallocatealpha_basic.phpt14 $img = imagecreatetruecolor(150, 150);
16 $cor = imagecolorallocate($img, 50, 100, 255);
17 $corA = imagecolorallocatealpha($img, 50, 100, 255, 50);
18 //$whiteA = imagecolorallocatealpha($img, 255, 255, 255, 127);
20 $half = imagefilledarc ( $img, 75, 75, 70, 70, 0, 180, $cor, IMG_ARC_PIE );
21 $half2 = imagefilledarc ( $img, 75, 75, 70, 70, 180, 360, $corA, IMG_ARC_PIE );
24 test_image_equals_file(__DIR__ . '/imagecolorallocatealpha_basic.png', $img);
H A Dbug39273.phpt20 $img = imagecreatetruecolor($width, $height);
22 imagecolortransparent($img, 0);
23 imagealphablending($img, false);
24 imagecopyresized($img, $small, 0,0, 0,0, $width, $height, $srcw, $srch);
25 imagesavealpha($img, 1);
27 $c = imagecolorat($img, 0,0);
H A Dbug51263.phpt14 $img = imagecreatetruecolor($w, $h);
15 $blk = imagecolorallocate($img, 0, 0, 0);
16 imagefilledrectangle($img, 0, 0, $w-1, $h-1, $blk);
17 $col = imagecolorallocate($img, 255, 255, 255);
18 imagettftext($img, 8, 90, 10, 60, $col, $ttf, "foo bar qux");
22 $c = imagecolorat($img, $i, $j);
H A Dbug72512.phpt12 $img = imagecreatetruecolor(100, 100);
13 imagecolortransparent($img, -1000000);
14 imagetruecolortopalette($img, TRUE, 3);
15 imagecolortransparent($img, 9);
H A Dbug72512_0.phpt13 $img = imagecreatetruecolor(13, 1007);
15 imagecolortransparent($img, -10066304);
16 imagetruecolortopalette($img, TRUE, 3);
17 imagescale($img, 1, 65535);
H A Dbug72512_1.phpt13 $img = imagecreatetruecolor(100, 100);
14 imagecolortransparent($img, -1000000);
15 imagetruecolortopalette($img, TRUE, 3);
16 imagecolortransparent($img, 9);
H A Dbug66356.phpt9 $img = imagecreatetruecolor(10, 10);
12 var_dump(imagecrop($img, array("x" => "a", "y" => 0, "width" => 10, "height" => 10)));
15 var_dump(imagecrop($img, $arr));
19 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => -1, "height" => 10)));
22 var_dump(imagecrop($img, array("x" => -20, "y" => -20, "width" => 10, "height" => 10)));
25 var_dump(imagecrop($img, array("x" => 0x7fffff00, "y" => 0, "width" => 10, "height" => 10)));
28 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => 65535, "height" => 65535)));
H A Dbug51498.phpt12 $img = imagecreatetruecolor(2200, 2200);
13 $white = imagecolorallocate($img, 255, 255, 255);
14 imagefilledellipse($img, 1100, 1100, 2200, 2200, $white);
17 test_image_equals_file(__DIR__ . '/bug51498_exp.png', $img);
H A Dbug72298.phpt9 $img = imagecreatetruecolor (1 , 1);
10 imagecolortransparent($img, 0);
11 imagetruecolortopalette($img, false, 4);
H A Dimagesetbrush_basic.phpt15 $img = imagecreate(10, 10);
20 $white = imagecolorallocate($img, 255, 0, 0);
21 imagefilledrectangle($img, 0, 0, 299, 99, $white);
24 imagesetbrush($mainimg, $img);
H A Dbug45799.phpt9 $img = imagecreate(500,500);
10 imagepng($img);
11 imagedestroy($img);
H A Dbug65148.phpt34 $img = imagecreate(40, 20);
38 imagesetinterpolation($img, $interpolation);
39 $t = imagecolorallocatealpha($img, 0, 0, 0, 127);
40 $imgr = imagerotate($img, -5, $t);
45 imagedestroy($img);
H A Dbug72227.phpt10 $img = imagecreatetruecolor ( 100, 100);
11 imagescale($img, 13, 1, IMG_BICUBIC);
H A Dbug70976.phpt9 $img = imagerotate(imagecreate(10,10),45,0x7ffffff9);
10 var_dump($img);
H A Dbug72730.phpt9 $img = imagecreatetruecolor(1, 1);
10 imagegammacorrect($img, -1, 1337);
H A Dbug72697.phpt11 $img=imagecreatetruecolor(10, 10);
12 imagetruecolortopalette($img, false, PHP_INT_MAX / 8);
/PHP-7.4/ext/simplexml/tests/
H A Dbug41175.phpt8 $xml = new SimpleXmlElement("<img></img>");
17 <img src="foo" alt=""/>
/PHP-7.4/ext/standard/tests/strings/
H A Dstrip_tags_variation11.phpt10 'hello <img title="<"> world',
11 'hello <img title=">"> world',
12 'hello <img title=">_<"> world',
13 "hello <img title='>_<'> world"
/PHP-7.4/ext/standard/tests/image/
H A Dgetimagesizefromstring1.phpt5 $img = __DIR__ . '/test.gif';
7 $i1 = getimagesize($img);
9 $data = file_get_contents($img);
/PHP-7.4/ext/dom/tests/
H A DDOMDocumentType_basic_001.phpt25 $xml .= '<!DOCTYPE img [';
26 $xml .= ' <!ELEMENT img EMPTY>';
27 $xml .= ' <!ATTLIST img src ENTITY #REQUIRED>';
31 $xml .= '<img src="logo"/>';

Completed in 27 milliseconds

12