Lines Matching refs:im1
18 $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);
31 var_dump(calc_image_dissimilarity($im1, $im2) < 10e5);