Lines Matching refs:im
10 $im = imagecreatetruecolor(5,5);
11 $c = imagecolorresolve($im, 255,0,255);
13 imagedestroy($im);
15 $im = imagecreate(5,5);
16 $c = imagecolorresolve($im, 255,0,255);
17 print_r(imagecolorsforindex($im, $c));
18 imagedestroy($im);
20 $im = imagecreate(5,5);
21 for ($i=0; $i<255; $i++) imagecolorresolve($im, $i,0,0);
22 $c = imagecolorresolve($im, 255,0,0);
23 print_r(imagecolorsforindex($im, $c));
26 $im = imagecreate(5,5);
29 imagecolorresolve($im, $i,10,10);
31 imagecolorresolve($im, $i,0,0);
34 $c = imagecolorresolve($im, 255,10,10);
35 print_r(imagecolorsforindex($im, $c));
40 $im = imagecreatetruecolor(5,5);
41 $c = imagecolorresolvealpha($im, 255,0,255, 100);
43 imagedestroy($im);
45 $im = imagecreate(5,5);
46 $c = imagecolorresolvealpha($im, 255,0,255,100);
47 print_r(imagecolorsforindex($im, $c));
48 imagedestroy($im);
50 $im = imagecreate(5,5);
51 for ($i=0; $i<255; $i++) imagecolorresolvealpha($im, $i,0,0,1);
52 $c = imagecolorresolvealpha($im, 255,0,0,1);
53 print_r(imagecolorsforindex($im, $c));
56 $im = imagecreate(5,5);
59 imagecolorresolvealpha($im, $i,10,10,1);
61 imagecolorresolvealpha($im, $i,0,0,100);
64 $c = imagecolorresolvealpha($im, 255,10,10,0);
65 print_r(imagecolorsforindex($im, $c));