Lines Matching refs:im
10 $im = imagecreatetruecolor(5,5);
11 $c = imagecolorclosest($im, 255,0,255);
13 imagedestroy($im);
15 $im = imagecreate(5,5);
16 $c = imagecolorclosest($im, 255,0,255);
17 print_r(imagecolorsforindex($im, $c));
18 imagedestroy($im);
20 $im = imagecreate(5,5);
21 imagecolorallocate($im, 255, 0, 255);
22 $c = imagecolorclosest($im, 255,0,255);
23 print_r(imagecolorsforindex($im, $c));
24 imagedestroy($im);
26 $im = imagecreate(5,5);
27 for ($i=0; $i<255; $i++) imagecolorresolve($im, $i,0,0);
28 $c = imagecolorclosest($im, 255,0,0);
29 print_r(imagecolorsforindex($im, $c));
32 $im = imagecreate(5,5);
35 imagecolorallocate($im, $i,10,10);
37 imagecolorallocate($im, $i,0,0);
40 $c = imagecolorclosest($im, 255,10,10);
41 print_r(imagecolorsforindex($im, $c));
44 $im = imagecreatetruecolor(5,5);
45 $c = imagecolorclosestalpha($im, 255,0,255,100);
47 imagedestroy($im);
49 $im = imagecreate(5,5);
50 $c = imagecolorclosestalpha($im, 255,0,255,100);
51 print_r(imagecolorsforindex($im, $c));
52 imagedestroy($im);
54 $im = imagecreate(5,5);
55 imagecolorallocatealpha($im, 255, 0, 255, 1);
56 $c = imagecolorclosestalpha($im, 255,0,255,1);
57 print_r(imagecolorsforindex($im, $c));
58 imagedestroy($im);
60 $im = imagecreate(5,5);
61 for ($i=0; $i<255; $i++) imagecolorresolvealpha($im, $i,0,0,1);
62 $c = imagecolorclosestalpha($im, 255,0,0,1);
63 print_r(imagecolorsforindex($im, $c));
66 $im = imagecreate(5,5);
69 imagecolorallocatealpha($im, $i,10,10,1);
71 imagecolorallocatealpha($im, $i,0,0,100);
74 $c = imagecolorclosestalpha($im, 255,10,10,1);
75 print_r(imagecolorsforindex($im, $c));