Home
last modified time | relevance | path

Searched refs:im1 (Results 1 – 10 of 10) sorted by relevance

/PHP-8.0/ext/gd/tests/
H A Dwebp_basic.phpt18 $im1 = imagecreatetruecolor(75, 75);
19 $white = imagecolorallocate($im1, 255, 255, 255);
20 $red = imagecolorallocate($im1, 255, 0, 0);
21 $green = imagecolorallocate($im1, 0, 255, 0);
22 $blue = imagecolorallocate($im1, 0, 0, 255);
23 imagefilledrectangle($im1, 0, 0, 74, 74, $white);
24 imageline($im1, 3, 3, 71, 71, $red);
25 imageellipse($im1, 18, 54, 36, 36, $green);
26 imagerectangle($im1, 41, 3, 71, 33, $blue);
27 imagewebp($im1, $filename);
[all …]
H A Dbug38212-mb.phpt12 $im1 = imagecreatetruecolor(10,100);
13 imagefill($im1, 0,0, 0xffffff);
14 imagegd2($im1, $file);
H A Dbug38212.phpt12 $im1 = imagecreatetruecolor(10,100);
13 imagefill($im1, 0,0, 0xffffff);
14 imagegd2($im1, $file);
H A Dbug53580.phpt21 $im1 = imagecreatetruecolor($w1, $h1);
22 imagecopyresampled($im1, $im0, 0, 0, 0, 0, $w1, $h1, $w0, $h0);
26 if (($c1 = imagecolorat($im1, $i, $j)) !== $c0) {
H A Dimagecolormatch_error4.phpt25 imagecolormatch(): Argument #2 ($image2) must be the same size as argument #1 ($im1)
/PHP-8.0/ext/gd/libgd/
H A Dgd_color_match.c10 int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2) in gdImageColorMatch() argument
18 if( !im1->trueColor ) { in gdImageColorMatch()
24 if( (im1->sx != im2->sx) || (im1->sy != im2->sy) ) { in gdImageColorMatch()
34 for (x=0; x<im1->sx; x++) { in gdImageColorMatch()
35 for( y=0; y<im1->sy; y++ ) { in gdImageColorMatch()
37 rgb = im1->tpixels[y][x]; in gdImageColorMatch()
H A Dgdtest.c14 void CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2);
360 CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2) in CompareImages() argument
364 cmpRes = gdImageCompare (im1, im2); in CompareImages()
388 im1->colorsTotal, im2->colorsTotal); in CompareImages()
H A Dgd.c2871 if (im1->interlace != im2->interlace) { in gdImageCompare()
2875 if (im1->transparent != im2->transparent) { in gdImageCompare()
2879 if (im1->trueColor != im2->trueColor) { in gdImageCompare()
2883 sx = im1->sx; in gdImageCompare()
2884 if (im1->sx != im2->sx) { in gdImageCompare()
2886 if (im2->sx < im1->sx) { in gdImageCompare()
2891 sy = im1->sy; in gdImageCompare()
2892 if (im1->sy != im2->sy) { in gdImageCompare()
2894 if (im2->sy < im1->sy) { in gdImageCompare()
2899 if (im1->colorsTotal != im2->colorsTotal) { in gdImageCompare()
[all …]
H A Dgd.h572 int gdImageColorMatch(gdImagePtr im1, gdImagePtr im2);
821 int gdImageCompare(gdImagePtr im1, gdImagePtr im2);
/PHP-8.0/ext/gd/
H A Dgd.c869 gdImagePtr im1, im2; in PHP_FUNCTION() local
876 im1 = php_gd_libgdimageptr_from_zval_p(IM1); in PHP_FUNCTION()
879 result = gdImageColorMatch(im1, im2); in PHP_FUNCTION()

Completed in 43 milliseconds