Lines Matching refs:im
8 $im = imagecreatetruecolor(5,5);
9 $c = imagecolorresolve($im, 255,0,255);
11 imagedestroy($im);
13 $im = imagecreate(5,5);
14 $c = imagecolorresolve($im, 255,0,255);
15 print_r(imagecolorsforindex($im, $c));
16 imagedestroy($im);
18 $im = imagecreate(5,5);
19 for ($i=0; $i<255; $i++) imagecolorresolve($im, $i,0,0);
20 $c = imagecolorresolve($im, 255,0,0);
21 print_r(imagecolorsforindex($im, $c));
24 $im = imagecreate(5,5);
27 imagecolorresolve($im, $i,10,10);
29 imagecolorresolve($im, $i,0,0);
32 $c = imagecolorresolve($im, 255,10,10);
33 print_r(imagecolorsforindex($im, $c));
38 $im = imagecreatetruecolor(5,5);
39 $c = imagecolorresolvealpha($im, 255,0,255, 100);
41 imagedestroy($im);
43 $im = imagecreate(5,5);
44 $c = imagecolorresolvealpha($im, 255,0,255,100);
45 print_r(imagecolorsforindex($im, $c));
46 imagedestroy($im);
48 $im = imagecreate(5,5);
49 for ($i=0; $i<255; $i++) imagecolorresolvealpha($im, $i,0,0,1);
50 $c = imagecolorresolvealpha($im, 255,0,0,1);
51 print_r(imagecolorsforindex($im, $c));
54 $im = imagecreate(5,5);
57 imagecolorresolvealpha($im, $i,10,10,1);
59 imagecolorresolvealpha($im, $i,0,0,100);
62 $c = imagecolorresolvealpha($im, 255,10,10,0);
63 print_r(imagecolorsforindex($im, $c));