Home
last modified time | relevance | path

Searched refs:image (Results 26 – 50 of 274) sorted by relevance

1234567891011

/PHP-5.4/ext/gd/tests/
H A Dimagefilledpolygon_basic.phpt11 /* Prototype : bool imagefilledpolygon ( resource $image , array $points , int $num_points , i…
13 * Source code: ext/standard/image.c
30 // create a blank image
31 $image = imagecreatetruecolor(250, 250);
34 $bg = imagecolorallocate($image, 0, 0, 0);
37 $col_poly = imagecolorallocate($image, 0, 255, 0);
40 imagefilledpolygon($image, $points, count($points)/2, $col_poly);
43 imagepng($image, $dest);
60 imagedestroy($image);
H A Dimageconvolution_basic.phpt12 $image = imagecreatetruecolor(180, 30);
14 // Writes the text and apply a gaussian blur on the image
15 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00);
23 imageconvolution($image, $gaussian, 16, 0);
26 imagepng($image, null, 9);
H A Dimagesetthickness_error2.phpt12 $image = imagecreatetruecolor(200, 100);
14 imagesetthickness($image, 's');
15 imagesetthickness($image, array());
16 imagesetthickness($image, $image);
H A Dimagechar_basic.phpt12 $image = imagecreatetruecolor(180, 30);
13 $white = imagecolorallocate($image, 255,255,255);
15 $result = imagechar($image, 1, 5, 5, 'C', $white);
18 imagepng($image, null, 9);
H A Dimagecharup_basic.phpt12 $image = imagecreatetruecolor(180, 30);
13 $white = imagecolorallocate($image, 255,255,255);
15 $result = imagecharup($image, 1, 5, 5, 'C', $white);
18 imagepng($image, null, 9);
H A Dimagestring_basic.phpt12 $image = imagecreatetruecolor(180, 30);
13 $white = imagecolorallocate($image, 255,255,255);
15 $result = imagestring($image, 1, 5, 5, 'String Text', $white);
18 imagepng($image, null, 9);
H A Dimagestringup_basic.phpt12 $image = imagecreatetruecolor(180, 30);
13 $white = imagecolorallocate($image, 255,255,255);
15 $result = imagestringup($image, 1, 5, 25, 'Str', $white);
18 imagepng($image, null, 9);
H A Dimageellipse_basic.phpt13 // Create a image
14 $image = imagecreatetruecolor(400, 300);
17 imageellipse($image, 200, 150, 300, 200, 16777215);
20 imagepng($image, null, 9);
H A Dimagearc_basic.phpt13 $image = imagecreatetruecolor(100, 100);
15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
18 imagearc($image, 50, 50, 30, 30, 0, 180, $white);
21 imagepng($image);
H A Dimagerectangle_error3.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagerectangle( $image, 'wrong param', 0, 50, 50, imagecolorallocate($image, 255, 255, 255) );
H A Dimagerectangle_error4.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagerectangle( $image, 0, 'wrong param', 50, 50, imagecolorallocate($image, 255, 255, 255) );
H A Dimagerectangle_error5.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagerectangle( $image, 0, 0, 'wrong param', 50, imagecolorallocate($image, 255, 255, 255) );
H A Dimagerectangle_error6.phpt12 // Create a image
13 $image = imagecreatetruecolor( 100, 100 );
16 imagerectangle( $image, 0, 0, 50, 'wrong param', imagecolorallocate($image, 255, 255, 255) );
H A Dimagecolordeallocate_error4.phpt12 $image = imagecreate(180, 30);
13 $white = imagecolorallocate($image, 255, 255, 255);
15 $totalColors = imagecolorstotal($image);
17 $result = imagecolordeallocate($image, -1.0);
H A Dimagearc_variation1.phpt13 $image = imagecreatetruecolor(100, 100);
15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
18 imagearc($image, 50, 50, 30, 30, 0, -90, $white);
21 imagepng($image);
H A Dimagearc_variation2.phpt13 $image = imagecreatetruecolor(100, 100);
15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
18 imagearc($image, 50, 50, 30, 30, -90, 0, $white);
21 imagepng($image);
H A Dimageinterlace_variation2.phpt13 $image = imagecreatetruecolor(100, 100);
16 imageinterlace($image, 1);
19 var_dump(imageinterlace($image, 0));
20 var_dump(imageinterlace($image));
H A Dimagecolordeallocate_error3.phpt12 $image = imagecreate(180, 30);
13 $white = imagecolorallocate($image, 255, 255, 255);
15 $totalColors = imagecolorstotal($image);
17 $result = imagecolordeallocate($image, $totalColors + 100);
H A Dimagefilledarc_basic.phpt13 $image = imagecreatetruecolor(100, 100);
15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
18 imagefilledarc($image, 50, 50, 30, 30, 0, 90, $white, IMG_ARC_PIE);
21 imagepng($image);
H A Dimagefilledarc_variation1.phpt13 $image = imagecreatetruecolor(100, 100);
15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
18 imagefilledarc($image, 50, 50, 30, 30, 0, -25, $white, IMG_ARC_PIE);
21 imagepng($image);
H A Dimagefilledarc_variation2.phpt13 $image = imagecreatetruecolor(100, 100);
15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
18 imagefilledarc($image, 50, 50, 30, 30, -25, 25, $white, IMG_ARC_PIE);
21 imagepng($image);
H A Dimagetruecolortopalette_error3.phpt12 $image = imagecreatetruecolor(50, 50);
15 imagetruecolortopalette($image, true, 'string');
16 imagetruecolortopalette($image, true, $resource);
17 imagetruecolortopalette($image, true, array());
18 imagetruecolortopalette($image, true, null);
H A Dimagearc_error1.phpt13 $image = imagecreatetruecolor(100, 100);
15 $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
18 imagearc($image, 50, 50, 30, 30, 0, 180);
21 imagepng($image);
H A Dimageconvolution_error1.phpt12 $image = imagecreatetruecolor(180, 30);
14 // Writes the text and apply a gaussian blur on the image
15 imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00);
23 var_dump(imageconvolution($image, $gaussian, 16));
/PHP-5.4/ext/standard/tests/image/
H A Dimage_type_to_mime_type_variation2.phpt6 …* Description: Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbna…
7 * Source code: ext/standard/image.c
49 string(9) "image/gif"
58 string(10) "image/jpeg"
61 string(10) "image/tiff"
73 string(9) "image/gif"

Completed in 28 milliseconds

1234567891011