Lines Matching refs:im
8 $im = imagecreatetruecolor(5,5);
9 $c = imagecolorclosest($im, 255,0,255);
11 imagedestroy($im);
13 $im = imagecreate(5,5);
14 $c = imagecolorclosest($im, 255,0,255);
16 imagecolorsforindex($im, $c);
20 imagedestroy($im);
22 $im = imagecreate(5,5);
23 imagecolorallocate($im, 255, 0, 255);
24 $c = imagecolorclosest($im, 255,0,255);
25 print_r(imagecolorsforindex($im, $c));
26 imagedestroy($im);
28 $im = imagecreate(5,5);
29 for ($i=0; $i<255; $i++) imagecolorresolve($im, $i,0,0);
30 $c = imagecolorclosest($im, 255,0,0);
31 print_r(imagecolorsforindex($im, $c));
34 $im = imagecreate(5,5);
37 imagecolorallocate($im, $i,10,10);
39 imagecolorallocate($im, $i,0,0);
42 $c = imagecolorclosest($im, 255,10,10);
43 print_r(imagecolorsforindex($im, $c));
46 $im = imagecreatetruecolor(5,5);
47 $c = imagecolorclosestalpha($im, 255,0,255,100);
49 imagedestroy($im);
51 $im = imagecreate(5,5);
52 $c = imagecolorclosestalpha($im, 255,0,255,100);
54 imagecolorsforindex($im, $c);
58 imagedestroy($im);
60 $im = imagecreate(5,5);
61 imagecolorallocatealpha($im, 255, 0, 255, 1);
62 $c = imagecolorclosestalpha($im, 255,0,255,1);
63 print_r(imagecolorsforindex($im, $c));
64 imagedestroy($im);
66 $im = imagecreate(5,5);
67 for ($i=0; $i<255; $i++) imagecolorresolvealpha($im, $i,0,0,1);
68 $c = imagecolorclosestalpha($im, 255,0,0,1);
69 print_r(imagecolorsforindex($im, $c));
71 $im = imagecreate(5,5);
74 imagecolorallocatealpha($im, $i,10,10,1);
76 imagecolorallocatealpha($im, $i,0,0,100);
79 $c = imagecolorclosestalpha($im, 255,10,10,1);
80 print_r(imagecolorsforindex($im, $c));