Home
last modified time | relevance | path

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

/PHP-8.2/ext/gd/tests/
H A Dwebp_basic.phpt19 $im1 = imagecreatetruecolor(75, 75);
20 $white = imagecolorallocate($im1, 255, 255, 255);
21 $red = imagecolorallocate($im1, 255, 0, 0);
22 $green = imagecolorallocate($im1, 0, 255, 0);
23 $blue = imagecolorallocate($im1, 0, 0, 255);
24 imagefilledrectangle($im1, 0, 0, 74, 74, $white);
25 imageline($im1, 3, 3, 71, 71, $red);
26 imageellipse($im1, 18, 54, 36, 36, $green);
27 imagerectangle($im1, 41, 3, 71, 33, $blue);
28 imagewebp($im1, $filename);
[all …]
H A Dbug53580.phpt22 $im1 = imagecreatetruecolor($w1, $h1);
23 imagecopyresampled($im1, $im0, 0, 0, 0, 0, $w1, $h1, $w0, $h0);
27 if (($c1 = imagecolorat($im1, $i, $j)) !== $c0) {
H A Dbug38212-mb.phpt16 $im1 = imagecreatetruecolor(10,100);
17 imagefill($im1, 0,0, 0xffffff);
18 imagegd2($im1, $file);
H A Dbug38212.phpt16 $im1 = imagecreatetruecolor(10,100);
17 imagefill($im1, 0,0, 0xffffff);
18 imagegd2($im1, $file);
H A Dimagecolormatch_error4.phpt23 imagecolormatch(): Argument #2 ($image2) must be the same size as argument #1 ($im1)
/PHP-8.2/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.h576 int gdImageColorMatch(gdImagePtr im1, gdImagePtr im2);
844 int gdImageCompare(gdImagePtr im1, gdImagePtr im2);
/PHP-8.2/ext/gd/
H A Dgd.c771 gdImagePtr im1, im2; in PHP_FUNCTION() local
778 im1 = php_gd_libgdimageptr_from_zval_p(IM1); in PHP_FUNCTION()
781 result = gdImageColorMatch(im1, im2); in PHP_FUNCTION()

Completed in 36 milliseconds