Home
last modified time | relevance | path

Searched refs:imagecolorallocate (Results 1 – 25 of 94) sorted by relevance

1234

/PHP-5.5/ext/gd/tests/
H A Dimagecolorallocate_error.phpt2 Test imagecolorallocate() function : error conditions
11 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
22 echo "*** Testing imagecolorallocate() : error conditions ***\n";
24 //Test imagecolorallocate with one more than the expected number of arguments
26 var_dump( imagecolorallocate($im, $red, $green, $blue, $extra_arg) );
28 // Testing imagecolorallocate with one less than the expected number of arguments
30 var_dump( imagecolorallocate() );
31 var_dump( imagecolorallocate($im, $red, $green) );
35 *** Testing imagecolorallocate() : error conditions ***
37 -- Testing imagecolorallocate() function with more than expected no. of arguments --
[all …]
H A Dimagecolorallocate_basic.phpt2 Test imagecolorallocate() function : basic functionality
14 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
19 echo "*** Testing imagecolorallocate() : basic functionality ***\n";
22 // Calling imagecolorallocate() with all possible arguments
23 var_dump( imagecolorallocate($im, 255, 0, 0) );
24 var_dump( imagecolorallocate($im, 0, 255, 0) );
25 var_dump( imagecolorallocate($im, 0, 0, 255) );
26 var_dump( imagecolorallocate($im, 255, 255, 255) );
30 *** Testing imagecolorallocate() : basic functionality ***
H A Dimagecolorallocate_variation1.phpt2 Test imagecolorallocate() function : usage variations - passing different data types to first argu…
11 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
16 echo "*** Testing imagecolorallocate() : usage variations ***\n";
111 var_dump( imagecolorallocate($value, $red, $green, $blue) );
116 *** Testing imagecolorallocate() : usage variations ***
165 Warning: imagecolorallocate() expects parameter 1 to be resource, array given in %s on line %d
170 Warning: imagecolorallocate() expects parameter 1 to be resource, array given in %s on line %d
175 Warning: imagecolorallocate() expects parameter 1 to be resource, array given in %s on line %d
180 Warning: imagecolorallocate() expects parameter 1 to be resource, array given in %s on line %d
185 Warning: imagecolorallocate() expects parameter 1 to be resource, null given in %s on line %d
[all …]
H A Dimagecolorallocate_variation4.phpt2 Test imagecolorallocate() function : usage variations - passing different data types to fourth arg…
14 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
18 echo "*** Testing imagecolorallocate() : usage variations ***\n";
103 var_dump( imagecolorallocate($im, $red, $green, $value) );
108 *** Testing imagecolorallocate() : usage variations ***
127 Warning: imagecolorallocate() expects parameter 4 to be long, array given in %s on line %d
132 Warning: imagecolorallocate() expects parameter 4 to be long, array given in %s on line %d
137 Warning: imagecolorallocate() expects parameter 4 to be long, array given in %s on line %d
142 Warning: imagecolorallocate() expects parameter 4 to be long, array given in %s on line %d
165 Warning: imagecolorallocate() expects parameter 4 to be long, string given in %s on line %d
[all …]
H A Dimagecolorallocate_variation2.phpt2 Test imagecolorallocate() function : usage variations - passing different data types to second arg…
14 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
19 echo "*** Testing imagecolorallocate() : usage variations ***\n";
104 var_dump( imagecolorallocate($im, $value, $green, $blue) );
109 *** Testing imagecolorallocate() : usage variations ***
128 Warning: imagecolorallocate() expects parameter 2 to be long, array given in %s on line %d
133 Warning: imagecolorallocate() expects parameter 2 to be long, array given in %s on line %d
138 Warning: imagecolorallocate() expects parameter 2 to be long, array given in %s on line %d
143 Warning: imagecolorallocate() expects parameter 2 to be long, array given in %s on line %d
166 Warning: imagecolorallocate() expects parameter 2 to be long, string given in %s on line %d
[all …]
H A Dimagecolorallocate_variation3.phpt2 Test imagecolorallocate() function : usage variations - passing different data types to third argu…
14 /* Prototype : imagecolorallocate(resource im, int red, int green, int blue)
19 echo "*** Testing imagecolorallocate() : usage variations ***\n";
104 var_dump( imagecolorallocate($im, $red, $value, $blue) );
109 *** Testing imagecolorallocate() : usage variations ***
128 Warning: imagecolorallocate() expects parameter 3 to be long, array given in %s on line %d
133 Warning: imagecolorallocate() expects parameter 3 to be long, array given in %s on line %d
138 Warning: imagecolorallocate() expects parameter 3 to be long, array given in %s on line %d
143 Warning: imagecolorallocate() expects parameter 3 to be long, array given in %s on line %d
166 Warning: imagecolorallocate() expects parameter 3 to be long, string given in %s on line %d
[all …]
H A Dimagecolorallocate_variation5.phpt2 Test imagecolorallocate() function : usage variations - passing octal and hexa-decimal values
14 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
18 echo "*** Testing imagecolorallocate() : usage variations ***\n";
42 var_dump( imagecolorallocate($im, $value, $green, $blue) );
43 var_dump( imagecolorallocate($im, $red, $value, $blue) );
44 var_dump( imagecolorallocate($im, $red, $green, $value) );
49 *** Testing imagecolorallocate() : usage variations ***
H A Dimagecolorallocate_variation6.phpt2 Test imagecolorallocate() function : usage variations - passing RED, GREEN, BLUE values more than …
14 /* Prototype : int imagecolorallocate(resource im, int red, int green, int blue)
18 echo "*** Testing imagecolorallocate() : usage variations ***\n";
37 var_dump( imagecolorallocate($im_palette, $value, $value, $value) );
38 var_dump( imagecolorallocate($im_true_color, $value, $value, $value) );
43 *** Testing imagecolorallocate() : usage variations ***
H A Dimagecopymerge_basic.phpt16 imagecolorallocate($des, 50, 50, 200);
17 $colorTXT_des = imagecolorallocate($des, 255, 255, 255);
19 imagecolorallocate($src, 255, 255, 255);
20 $colorTXT_src = imagecolorallocate($src, 0, 255, 255);
H A Dimagefilltoborder_basic.phpt16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallocate( $imag…
H A Dimagefilltoborder_error1.phpt16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( 'wrong param', 50, 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallocate
H A Dimagefilltoborder_error2.phpt16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 'wrong param', 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallo…
H A Dimagefilltoborder_error3.phpt16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 'wrong param', imagecolorallocate( $image, 0, 0, 0 ), imagecolorallo…
H A Dimagefilltoborder_error6.phpt16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
23 imagefilltoborder( $image_foo, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), imagecolorallocate( $…
H A Dlibgd00186.phpt11 $red = imagecolorallocate($tile,0xff,0,0);
12 $green = imagecolorallocate($tile,0,0xff,0);
13 $blue = imagecolorallocate($tile,0,0,0xff);
14 $other = imagecolorallocate($tile,0,0,0x2);
H A Dimagefill_1.phpt15 $white = imagecolorallocate($im, 255,255,255);
16 $blue = imagecolorallocate($im, 0,0,255);
17 $green = imagecolorallocate($im, 0,255,0);
H A Dcopy.phpt56 $c0 = imagecolorallocate($src_tc, 0xff, 0xff, 0xff);
57 $c1 = imagecolorallocate($src_tc, 0xff, 0x00, 0x00);
58 $c2 = imagecolorallocate($src_tc, 0x00, 0x00, 0xff);
59 $c3 = imagecolorallocate($src_tc, 0x00, 0xff, 0x00);
85 $c0 = imagecolorallocate($src_tc, 0xff, 0xff, 0xff);
86 $c1 = imagecolorallocate($src_tc, 0xff, 0x00, 0x00);
87 $c2 = imagecolorallocate($src_tc, 0x00, 0x00, 0xff);
88 $c3 = imagecolorallocate($src_tc, 0x00, 0xff, 0x00);
H A Dcopyresized.phpt54 $white = imagecolorallocate($src_tc, 255,255,255);
55 $red = imagecolorallocate($src_tc, 255,0,0);
70 $white = imagecolorallocate($src_tc, 255,255,255);
71 $red = imagecolorallocate($src_tc, 255,0,0);
80 $white = imagecolorallocate($src_tc, 255,255,255);
81 $red = imagecolorallocate($src_tc, 255,0,0);
H A Dimagecolourstotal_basic.phpt27 $bg = imagecolorallocate( $img, 255, 255, 255 );
29 $bg = imagecolorallocate( $img, 255, 0, 0 );
30 $bg = imagecolorallocate( $img, 0, 0, 255 );
37 $bg = imagecolorallocate( $img, 255, 255, 255 );
H A Dbug40764.phpt10 $white = imagecolorallocate($image, 255, 255, 255);
11 $black = imagecolorallocate($image, 0, 0, 0);
12 $red = imagecolorallocate($image, 255, 0, 0);
H A Dimagefilltoborder_error4.phpt16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 50, 'wrong param', imagecolorallocate( $image, 255, 0, 0 ) );
H A Dimagefilltoborder_error5.phpt16 imagefilledrectangle( $image, 0, 0, 100, 100, imagecolorallocate( $image, 255, 255, 255 ) );
19 imageellipse( $image, 50, 50, 50, 50, imagecolorallocate( $image, 0, 0, 0 ) );
22 imagefilltoborder( $image, 50, 50, imagecolorallocate( $image, 0, 0, 0 ), 'wrong param' );
H A Dgif.phpt49 $c = imagecolorallocate($im, 255,255,255);
58 $c = imagecolorallocate($im, $i,$i,$i);
70 $c = imagecolorallocate($im, $i,$i,$i);
82 $c = imagecolorallocate($im, $i,$i,$i);
94 $c = imagecolorallocate($im, $i,$i,$i);
105 $c = imagecolorallocate($im, $i,$i,$i);
116 $c = imagecolorallocate($im, $i,$i,$i);
H A Dimagecolormatch_basic.phpt13 $background_color = imagecolorallocate($ima, 0, 0, 0);
15 $background_color = imagecolorallocate($imb, 0, 0, 100);
H A Dbug24594.phpt13 $white = imagecolorallocate($tile,255,255,255);
14 $black = imagecolorallocate($tile,0,0,0);
15 $white = imagecolorallocate($base,255,255,255);
16 $black = imagecolorallocate($base,0,0,0);

Completed in 25 milliseconds

1234